Linux下Nginx源码编译安装(5)

##注意重新编译仅仅 make 不用 make install
[root@nginx nginx-1.15.2]# make
[root@nginx nginx-1.15.2]# nginx
[root@nginx nginx-1.15.2]# ps xa| grep nginx
 9728 ?        Ss    0:00 nginx: master process nginx
 9729 ?        S      0:00 nginx: worker process
 9732 pts/0    S+    0:00 grep --color=auto nginx
 [root@nginx nginx-1.15.2]# nginx -s stop

重新安装

[root@nginx ~]# ls
nginx-1.15.2  nginx-1.15.2.tar.gz
[root@nginx ~]# cd nginx-1.15.2
[root@nginx nginx-1.15.2]# make clean
rm -rf Makefile objs
[root@nginx nginx-1.15.2]# ./configure --prefix=/usr/local/lnmp/nginx --with-http_ssl_module --with-http_stub_status_module --with-file-aio --with-threads --user=nginx --group=nginx

##注意重新安装nginx时,需要 make && make install
[root@nginx nginx-1.15.2]# make && make install
[root@nginx nginx-1.15.2]# nginx
[root@nginx nginx-1.15.2]# ps xa| grep nginx
12419 ?        Ss    0:00 nginx: master process nginx
12420 ?        S      0:00 nginx: worker process
12422 pts/0    S+    0:00 grep --color=auto nginx
[root@nginx nginx-1.15.2]# nginx -s stop

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/7e5d26a30e912a29c09d59ee703179f1.html