源码编译nginx

[root@localhost local]# yum -y install pcre pcre-devel
#解压nginx源码包
[root@localhost local]# tar -zxvf /tmp/nginx-1.11.3.tar.gz 
[root@localhost local]# cd nginx-1.11.3/
[root@localhost nginx-1.11.3]# ./configure --prefix=/usr/local/nginx/
[root@localhost nginx-1.11.3]# make
[root@localhost nginx-1.11.3]# make install

 

posted @ 2016-12-31 23:33  1011110  阅读(112)  评论(0编辑  收藏  举报