Centos7如何重启Nginx
方法一
1.查询Nginx的安装位置
whereis nginx
2.进入安装目录
一般默认安装位置是 /usr/local/nginx
cd /usr/sbin
3.重启Nginx服务
./nginx -s reload
方法二
systemctl start nginx.service
其他相关命令
systemctl start nginx.service systemctl stop nginx.service systemctl reload nginx.service systemctl status nginx.service