installation manual
Directory configuration file
/ etc / nginx
/etc/nginx/nginx.conf
/etc/nginx/conf.d
/etc/nginx/conf.d/default.conf
CGI配置
/etc/nginx/fastcgi_params
/etc/nginx/uwsgi_params
/etc/nginx/scgi_params
Transcoding map file
/ etc / Nginx / UTF-Koi
/ etc / Nginx / Koi-win
etc / Nginx / UTF-win
Relationship set the http protocol content-type and extension of
/etc/nginx/mime.types
It is used to configure a system daemon Manager management
/usr/lib/systemd/system/nginx-debug.service
/usr/lib/systemd/system/nginx.service
/ etc / sysconfig / nginx
/ etc / syscnfig / nginx- debug
Nginx module directory
/ usr / lib63 / Nginx / modules
/ etc / Nginx / modules
Nginx start managing terminal services command
/ usr / sbin / nginx
/ usr / sbin / nginx-Debug
Nginx cache directory
/ var / cache / nginx
Nginx log directory
/ var / log / nginx
Installation compile parameters
nginx -V
user #设置nginx服务的系统使用用户
worker_processes #工作进程数 一般和cpu数量保持一致
error_log #nginx的错误日志
pid #nginx服务启动时候pid
events{
worker_connections #每个进程允许最大连接数
use #工作进程数
}
http{
include /etc/nginx/mime.types;
default_type application/octet-stream;
server{
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 /50x.html;
location = /50x.html{
root /usr/share/nginx/html;
}
}
server{
}
...
}