Centos7如何重启Nginx

发布时间:2023-03-16T21:23:05 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

原文链接:https://www.cnblogs.com/peijyStudy/p/15882347.html