目录

2638264600 的个人博客

记录精彩的程序人生

标签: nginx (1)

nginx相关说明 有更新!

https://github.com/freshWinter/LinuxSRE/tree/master/application-service/nginx https://github.com/freshWinter/LinuxSRE/tree/master/application-service/nginx nginx -s reload :不重启服务的情况下重新加载配置文件 不加选项:启动nginx服务 -h或-?选项:查看nginx命令帮助 -v选项:查看nginx版本信息 -V选项:查看nginx编译信息 -c选项:启动nginx时指定主配置文件 -t或-T选项:测试nginx.conf文件是否存在语法错误 -s选项:向正在运行的nginx主进程发送信号,信号的可用值有stop, quit, reopen, reload alias指令只能在location块中使用,而root指令则不然,root会拼接location的路径,alias不会。 $remote_addr变量:记录了客户端的IP地址(普通情况下)。 $remote_user变量:当nginx开启了用户认证功能后,此....