方法一

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

相关文章:

  • 2021-11-17
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
猜你喜欢
  • 2021-09-14
  • 2022-01-01
  • 2022-12-23
  • 2021-12-03
  • 2021-12-10
相关资源
相似解决方案