centos7重启nginx
1.找到nginx的安装位置
whereis nginx
2.进入该目录下
cd /usr/sbin
3. 重启
./nginx -s reload
4.其他命令
systemctl start nginx.service
systemctl stop nginx.service
systemctl reload nginx.service
systemctl status nginx.service
whereis nginx
cd /usr/sbin
./nginx -s reload
systemctl start nginx.service
systemctl stop nginx.service
systemctl reload nginx.service
systemctl status nginx.service