nginx简介及简单使用
2012-02-02 11:06
681 查看
Nginx is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. Igor
Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18%
(22.2M) of all domains worldwide. As Netcraft predicted, Nginx now surpasses Microsoft IIS as the second most popular web server.
Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
Nginx is one of a handful of servers written to address the C10K
problem. Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts
of memory under load.
Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from Nginx's high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.
Nginx powers several high-visibility sites, such as WordPress, Hulu, Github, Ohloh, SourceForge, WhitePages and TorrentReactor.
下面开始介绍下nginx的下载、安装及简单使用:
1、下载:
2011年4月12日 nginx 最新Windows版程序下载地址:
http://nginx.org/download/nginx-1.0.0.zip
2、安装:
使用上面的下载地址下载得到一ZIP压缩包,解压得到nginx-1.0.0文件夹。
例如解压到D:\nginx\
3、简单使用:
首先编辑nginx文件夹内conf文件夹里的nginx.conf,修改端口:
例如可修改 listen 8080 ,即为设置默认访问端口为8080.
然后在CMD(命令提示符)中切换工作目录到D:\nginx
接着输入:start nginx ,并回车。
如果防火墙弹出提示,请允许通过。
接下来打开浏览器,访问http://127.0.0.1:8080,
如果页面显示“Welcome to nginx!”,那就运行成功了。
这个页面在nginx的html目录下。
更高级的功能配置请参考nginx官方WIKI:http://wiki.nginx.org/
nginx中文WIKI:http://wiki.nginx.org/NginxChs
Sysoev started development of Nginx in 2002, with the first public release in 2004. Nginx now hosts nearly 12.18%
(22.2M) of all domains worldwide. As Netcraft predicted, Nginx now surpasses Microsoft IIS as the second most popular web server.
Nginx is known for its high performance, stability, rich feature set, simple configuration, and low resource consumption.
Nginx is one of a handful of servers written to address the C10K
problem. Unlike traditional servers, Nginx doesn't rely on threads to handle requests. Instead it uses a much more scalable event-driven (asynchronous) architecture. This architecture uses small, but more importantly, predictable amounts
of memory under load.
Even if you don't expect to handle thousands of simultaneous requests, you can still benefit from Nginx's high-performance and small memory footprint. Nginx scales in all directions: from the smallest VPS all the way up to clusters of servers.
Nginx powers several high-visibility sites, such as WordPress, Hulu, Github, Ohloh, SourceForge, WhitePages and TorrentReactor.
下面开始介绍下nginx的下载、安装及简单使用:
1、下载:
2011年4月12日 nginx 最新Windows版程序下载地址:
http://nginx.org/download/nginx-1.0.0.zip
2、安装:
使用上面的下载地址下载得到一ZIP压缩包,解压得到nginx-1.0.0文件夹。
例如解压到D:\nginx\
3、简单使用:
首先编辑nginx文件夹内conf文件夹里的nginx.conf,修改端口:
例如可修改 listen 8080 ,即为设置默认访问端口为8080.
然后在CMD(命令提示符)中切换工作目录到D:\nginx
接着输入:start nginx ,并回车。
如果防火墙弹出提示,请允许通过。
接下来打开浏览器,访问http://127.0.0.1:8080,
如果页面显示“Welcome to nginx!”,那就运行成功了。
这个页面在nginx的html目录下。
更高级的功能配置请参考nginx官方WIKI:http://wiki.nginx.org/
nginx中文WIKI:http://wiki.nginx.org/NginxChs
相关文章推荐
- nginx简介及简单使用
- 使用NGiNX_HTTP_Push_Module实现简单的服务器推送
- nginx http_gzip_static_module 扩展压缩模块的简单使用
- Nginx简介,编译,安装和简单操作
- ubuntu下使用nginx、mysql、python搭建一个简单的webserver
- Centos 7环境下使用nginx和uwsgi部署多站(最简单的方法)
- gtest简介及简单使用
- 使用nginx搭建一个简单的负载均衡
- ASP.NET Identity简介及简单使用
- 使用NGiNX_HTTP_Push_Module实现简单的服务器推送
- Qt简介、安装及在Ubuntu14.04 32位上简单使用举例
- Qt简介、安装及在Ubuntu14.04 32位上简单使用举例
- 使用nginx 隔离进行简单的拦截
- ADODB简介以及简单使用
- Joda-Time简介与简单使用例子
- wsgi简介,flask和scrapy的简单使用
- Nginx简介及使用Nginx实现负载均衡的原理【通俗易懂,言简意赅】
- ASP.NET Identity简介及简单使用
- 使用NGiNX_HTTP_Push_Module实现简单的服务器推送
- Qt简介、安装及在Ubuntu14.04 32位上简单使用举例