Nginx目录文件

目录核⼼心介绍

conf #所有配置⽂文件⽬目录
  nginx.conf #默认的主要的配置⽂文件
  nginx.conf.default #默认模板


html # 这是编译安装时Nginx的默认站点⽬目录
  50x.html #错误⻚页⾯面
  index.html #默认⾸首⻚页


logs # nginx默认的⽇日志路路径,包括错误⽇日志及访问⽇日志
  error.log #错误⽇日志
  nginx.pid #nginx启动后的进程id
  access.log #nginx访问⽇日志


sbin #nginx命令的⽬目录
  nginx #启动命令

 

常见命令

./nginx #默认配置⽂文件启动


./nginx -s reload #重启,加载默认配置⽂文件


./nginx -c /usr/local/nginx/conf/nginx.conf
#启动指定某个配置⽂文件


./nginx -s stop #停⽌止
#关闭进程,nginx有master process 和worker
process,关闭master即可
ps -ef | grep "nginx"
kill -9 PID

 

posted @ 2021-10-21 23:10  WXK51513  阅读(108)  评论(0)    收藏  举报