好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

nginx的小总结(一) - Linux操作系统:Ubuntu_Centos_De

nginx的小总结(一)

 

nginx是一个免费、开源、高性能的HTTP server、反向代理服务器以及邮件代理服务器。因其高性能、可靠性好、丰富的特征插件、极低的资源消耗而闻名!

  www.2cto.com  

NGINX的编译安装(RHEL6.0)

 

[root@server2 nginx-1.2.3]# vim auto/cc/gcc 

# debug 

#CFLAGS="$CFLAGS -g"                        //为了编译简单,我们将调试的部分去掉 

 

[root@server2 nginx-1.2.3]# vim src/core/nginx.h

 

#define NGINX_VER 

"nginx/" NGINX_VERSION                                       //去掉课隐藏版本号 

useradd -M -d /usr/local/lnmp/nginx -s /sbin/nologin nginx                    //添加一个nginx的用户 

[root@server2 nginx-1.2.3]# ./configure --prefix=/usr/local/nginx --with- 

http_stub_status_module --with-http_ssl_module

 

制定安装的路径以及加载的模块,会发现没有PCRE库   www.2cto.com  

 

PATH=$PATH:$HOME/bin:/usr/local/lnmp/nginx/sbin

 

[root@server2 ~]# source ~/.bash_profile 

同样加入环境变量 

yum install pcre-devel 

 

查看更多关于nginx的小总结(一) - Linux操作系统:Ubuntu_Centos_De的详细内容...

  阅读:77次