nginx的nginx.conf.default

环境:CentOS 6.5 64bit

nginx version: nginx/1.12.2


nginx/1.12.2 源码安装,conf有如下:

[root@localhost conf]# pwd
/usr/local/nginx/conf
[root@localhost conf]# ll
total 60
-rw-r--r-- 1 root root 1077 Jan 12 15:26 fastcgi.conf
-rw-r--r-- 1 root root 1077 Jan 12 15:26 fastcgi.conf.default
-rw-r--r-- 1 root root 1007 Jan 12 15:26 fastcgi_params
-rw-r--r-- 1 root root 1007 Jan 12 15:26 fastcgi_params.default
-rw-r--r-- 1 root root 2837 Jan 12 15:26 koi-utf
-rw-r--r-- 1 root root 2223 Jan 12 15:26 koi-win
-rw-r--r-- 1 root root 3957 Jan 12 15:26 mime.types
-rw-r--r-- 1 root root 3957 Jan 12 15:26 mime.types.default
-rw-r--r-- 1 root root 2656 Jan 12 15:26 nginx.conf
-rw-r--r-- 1 root root 2656 Jan 19 13:40 nginx.conf.default
-rw-r--r-- 1 root root  636 Jan 12 15:26 scgi_params
-rw-r--r-- 1 root root  636 Jan 12 15:26 scgi_params.default
-rw-r--r-- 1 root root  664 Jan 12 15:26 uwsgi_params
-rw-r--r-- 1 root root  664 Jan 12 15:26 uwsgi_params.default
-rw-r--r-- 1 root root 3610 Jan 12 15:26 win-utf
通过如下命令,可以确认默认conf是:nginx.conf

[root@localhost conf]# ../sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

diff查看,nginx.conf 和 nginx.conf.default内容一致。

[root@localhost conf]# diff nginx.conf nginx.conf.default
但是系统默认使用的是nginx.conf,所以如果要修改配置,要修改的文件是:nginx.conf
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值