源码包安装配置文件在
[root@localhost nginx-1.8.0]# ls /usr/local/nginx/conf
fastcgi.conf koi-utf nginx.conf scgi_params.default win-utf
fastcgi.conf.default koi-win nginx.conf.1 uwsgi_params
fastcgi_params mime.types nginx.conf.default uwsgi_params.default
fastcgi_params.default mime.types.default scgi_params vhost
[root@localhost nginx-1.8.0]# ls /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/conf/nginx.conf
yum安装nginx
配置文件在
[root@localhost nginx-1.8.0]# ls /etc/nginx/
ls: 无法访问/etc/nginx/: 没有那个文件或目录
[root@localhost nginx-1.8.0]# cd /usr/local/nginx/conf/
[root@localhost conf]# ls
fastcgi.conf koi-utf nginx.conf scgi_params.default win-utf
fastcgi.conf.default koi-win nginx.conf.1 uwsgi_params
fastcgi_params mime.types nginx.conf.default uwsgi_params.default
fastcgi_params.default mime.types.default scgi_params vhost
[root@localhost conf]# vi /usr/local/nginx/conf/nginx.conf
里面的错误日志
error_log /usr/local/nginx/logs/nginx_error.log crit;
error_log logs/error.log notice;
pid /usr/local/nginx/logs/nginx.pid;
事件管理器
events
{
use epoll;
worker_connections 6000;
}
来源:oschina
链接:https://my.oschina.net/u/3866192/blog/3186679