Linux环境安装配置Nginx笔记

Nginx

Nginx (读法发音为:”engine x”) 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器 。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过四年多了。Igor 将源代码以类BSD许可证的形式发布。

这是站长在最近一次安装Nginx时记录的笔记,如有疏漏欢迎提醒,我的信箱是:jasonwei06@hotmail.com

//—————————————-安装环境—————————————-
//Linux版本:CentOS 5.5
//PCRE版本:PCRE 8.11
//Nginx版本:Nginx 0.8.54

//—————————————-安装PCRE—————————————-
//备注:PCRE是安装Nginx的rewrite模块所必须用到的库
#tar zxvf pcre-8.11.tar.gz
#cd pcre-8.11
#./configure
#make
#make install

//创建用户组和用户
#groupadd www
#useradd -g www www

//—————————————-安装Nginx—————————————-
#tar zxvf nginx-0.8.54.tar.gz
#cd nginx-0.8.54
#./configure –prefix=/usr/local/nginx –with-http_stub_status_module –user=www –group=www –with-http_ssl_module
#make
#make install

//默认的各个文件路径如下:
nginx path prefix: “/usr/local/nginx”
nginx binary file: “/usr/local/nginx/sbin/nginx”
nginx configuration prefix: “/usr/local/nginx/conf”
nginx configuration file: “/usr/local/nginx/conf/nginx.conf”
nginx pid file: “/usr/local/nginx/logs/nginx.pid”
nginx error log file: “/usr/local/nginx/logs/error.log”
nginx http access log file: “/usr/local/nginx/logs/access.log”

阳光部落原创,更多内容请访问 http://www.sunbloger.com/

相关内容:

《Linux环境安装配置Nginx笔记》有1条评论

发表评论