启动:
-c filename : set configuration file (default: conf/nginx.conf)
[root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
停止:
-s signal : send signal to a master process: stop, quit, reopen, reload
1、 pkill -9 nginx
2、 /usr/local/nginx/sbin/nginx -s stop
重启:
/usr/local/nginx/sbin/nginx -s reload