摘要: 1、导入外部文件,使用include include test.conf; 内容如下: server { listen 80; server_name localhost; location / { root html; index index.html index.htm; } } server 阅读全文
posted @ 2020-04-22 17:16 阿森sirius 阅读(89) 评论(0) 推荐(0)
摘要: 现有的日志都会存在 access.log 文件中,但是随着时间的推移,这个文件的内容会越来越多,体积会越来越大,不便于运维人员查看,所以我们可以通过把这个大的日志文件切割为多份不同的小文件作为日志,切割规则可以以天为单位,如果每天有几百G或者几个T的日志的话,则可以按需以每半天或者每小时对日志切割一 阅读全文
posted @ 2020-04-22 15:06 阿森sirius 阅读(250) 评论(0) 推荐(0)
摘要: 1、配置文件位置 whereis nginx cd /usr/local/nginx/conf vim nginx.conf 2、设置worker进程的用户,指的linux中的用户,会涉及到nginx操作目录或文件的一些权限,默认为nobody user root; 3、worker进程工作数设置, 阅读全文
posted @ 2020-04-22 11:18 阿森sirius 阅读(124) 评论(0) 推荐(0)