1、查看状态或是否已经启动
ps axu| grep nginx
2、先停止
/usr/local/nginx/sbin/nginx -s stop
3、配置nginx.conf复制到指定位置
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
4、重启
/usr/local/nginx/sbin/nginx -s reload
1、查看状态或是否已经启动
ps axu| grep nginx
2、先停止
/usr/local/nginx/sbin/nginx -s stop
3、配置nginx.conf复制到指定位置
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
4、重启
/usr/local/nginx/sbin/nginx -s reload