启动
sudo nginx -c /usr/local/etc/nginx/nginx.conf
停止
ps -ef|grep nginx
0 9554 1 0 10:55上午 ?? 0:00.00 nginx: master process nginx -c /usr/local/etc/nginx/nginx.conf
kill 9554
重新加载
nginx -s reload
查看配置是否正确
nginx -t
sudo nginx -c /usr/local/etc/nginx/nginx.conf
ps -ef|grep nginx
0 9554 1 0 10:55上午 ?? 0:00.00 nginx: master process nginx -c /usr/local/etc/nginx/nginx.conf
kill 9554
nginx -s reload
nginx -t