摘要:
1、日志路径 Nginx日志包括error_log和access_log,在/etc/nginx/nginx.conf中有配置。 error_log:主要记录nginx处理http请求的错误状态,以及nginx本身服务运行的错误状态。 access_log:记录nginx每一次http请求的访问状态 阅读全文
posted @ 2020-05-02 17:53
雷雨客
阅读(2105)
评论(0)
推荐(0)
摘要:
1、基础配置 Nginx的主配置文件:/etc/nginx/nginx.conf,当读到下面include一行会加载/etc/nginx/conf.d下,以 *.conf结尾的文件。 user:设置nginx服务的系统使用用户 worker_processes:工作进程数,最好设置为与cpu个数一致 阅读全文
posted @ 2020-05-02 14:57
雷雨客
阅读(309)
评论(0)
推荐(0)
摘要:
查看安装编译参数命令: nginx -V 编译选项说明: 编译选项 作用 --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/ng 阅读全文
posted @ 2020-05-02 11:09
雷雨客
阅读(252)
评论(0)
推荐(0)
摘要:
1、参考官方资料 官网:http://nginx.org,点击右侧download,可以看到各种版本,工作中要使用稳定的版本,如下: Mainline version:开发版本 不稳定 Stable version:稳定版本 Legacy versions:历史稳定版本 上图下拉,点击 stable 阅读全文
posted @ 2020-05-02 10:23
雷雨客
阅读(655)
评论(0)
推荐(0)
摘要:
111 阅读全文
posted @ 2020-05-02 09:04
雷雨客
阅读(571)
评论(0)
推荐(0)
浙公网安备 33010602011771号