##注意重新编译仅仅 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