nginx檢查和重啟
ps -ef|grep nginx
root 10923 1 0 Sep10 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 10924 10923 2 Sep10 ? 00:48:42 nginx: worker process
root 24180 27928 0 08:39 pts/5 00:00:00 grep nginx
/usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
/usr/local/nginx/sbin/nginx reload