一、常用命令

1.ps  aux | grep nginx 查看nginx运行状态

2.systemctl  start  nginx.service  启动nginx

3.nginx -s stop  立即停止nginx服务

4.nginx -s quit  从容停止

5.killall  nginx 杀死所有的nginx 进程

6.systemctl   stop nginx.service  停止nginx服务器

7.systemctl   restart  ngnix.service  重启nginx服务器

8.nginx  -s  reload   重新载入配置文件文件

二、文件位置

1.rpm  -ql  nginx    查看nginx安装列表,可以看到nginx所有的安装位置

2.总配置文件:/etc/nginx/nginx.conf

3./etc/nginx/conf.d  所有的nginx自定义配置文件

4./var/log/nginx/error.log  错误日志文件

5./usr/share/nginx/html   服务器默认启动目录

相关文章:

  • 2021-11-22
  • 2022-02-08
  • 2021-08-01
猜你喜欢
  • 2021-06-23
  • 2021-04-07
  • 2022-12-23
  • 2022-02-05
  • 2021-11-22
  • 2021-11-22
  • 2021-11-22
相关资源
相似解决方案