摘要: 日志模块 1、access_log指令 语法: access_log path [format [buffer=size [flush=time]]]; 默认值: access_log logs/access.log combined; 配置段: http, server, location, if 阅读全文
posted @ 2018-06-12 22:46 小亮的BLOG 阅读(1205) 评论(0) 推荐(0)
摘要: 默认启动Nginx时,使用的配置文件是: 安装路径/conf/nginx.conf 文件,可以在启动nginx的时候,通过-c来指定要读取的配置文件 常见的配置文件有如下几个: nginx.conf:应用程序的基本配置文件 mime.types:MIME类型关联的扩展文件 fastcgi.conf: 阅读全文
posted @ 2018-06-12 08:18 小亮的BLOG 阅读(1050) 评论(0) 推荐(0)
摘要: 测试配置文件: 安装路径下的/nginx/sbin/nginx -t启动: 安装路径下的/nginx/sbin/nginx停止 安装路径下的/nginx/sbin/nginx -s stop 或者是: nginx -s quit重启 安装路径下的/nginx/sbin/nginx -s reload 阅读全文
posted @ 2018-06-12 07:22 小亮的BLOG 阅读(451) 评论(0) 推荐(0)