Nginx 安裝目錄詳解
[root@localhost yum.repos.d]# rpm -ql nginx
# Nginx日志輪轉(zhuǎn)薄翅,用于logrotate服務(wù)的日志切割祭示,定義周期兜挨,按天或月等切割日志
/etc/logrotate.d/nginx
# Nginx配置文件目錄
/etc/nginx
# 主要配置文件
/etc/nginx/nginx.conf
/etc/nginx/conf.d
# 默認(rèn)server加載的配置文件
/etc/nginx/conf.d/default.conf
# cgi配置相關(guān)攘蔽,fastcgi配置
# php fastcgi時(shí)需加載fastcgi配置文件
/etc/nginx/fastcgi_params
/etc/nginx/scgi_params
/etc/nginx/uwsgi_params
# 編碼轉(zhuǎn)換映射轉(zhuǎn)化文件
/etc/nginx/koi-utf
/etc/nginx/koi-win
/etc/nginx/win-utf
# 設(shè)置httpd協(xié)議的Content-Type與擴(kuò)展名對(duì)應(yīng)關(guān)系,如jpg,json固额,xml等
/etc/nginx/mime.types
# 用于配置出系統(tǒng)守護(hù)進(jìn)程管理器管理方式 Centos7.2
/usr/lib/systemd/system/nginx-debug.service
/usr/lib/systemd/system/nginx.service
/etc/sysconfig/nginx
/etc/sysconfig/nginx-debug
# Nginx模塊目錄
/usr/lib64/nginx/modules
/etc/nginx/modules
# Nginx服務(wù)的啟動(dòng)管理的終端命令
/usr/sbin/nginx
# 具體的調(diào)試分析
/usr/sbin/nginx-debug
# Nginx的手冊(cè)和幫助文件
/usr/share/doc/nginx-1.12.2
/usr/share/doc/nginx-1.12.2/COPYRIGHT
/usr/share/man/man8/nginx.8.gz
# Nginx緩存目錄
/var/cache/nginx
# Nginx日志目錄
/var/log/nginx
安裝編譯參數(shù)詳解
# 安裝目錄或路徑
# Nginx主目錄
--prefix=/etc/nginx
# Nginx執(zhí)行命令
--sbin-path=/usr/sbin/nginx
# Nginx模塊
--modules-path=/usr/lib64/nginx/modules
# Nginx配置文件
--conf-path=/etc/nginx/nginx.conf
# Nginx錯(cuò)誤日志文件
--error-log-path=/var/log/nginx/error.log
# Nginx訪(fǎng)問(wèn)日志文件
--http-log-path=/var/log/nginx/access.log
# Nginx服務(wù)所啟動(dòng)的pid
--pid-path=/var/run/nginx.pid
# Nginx鎖
--lock-path=/var/run/nginx.lock
# 執(zhí)行對(duì)應(yīng)模塊時(shí)头谜,Nginx所保留的臨時(shí)性文件
--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp
# 設(shè)定Nginx進(jìn)程啟動(dòng)的用戶(hù)和組,以root啟動(dòng)服務(wù),實(shí)際工作進(jìn)程(worker)由nginx用戶(hù)執(zhí)行(安全)
--user=nginx
--group=nginx
# 設(shè)置額外(優(yōu)化)的參數(shù)將被添加到CFLAGS變量
--with-cc-opt=parameters
# 設(shè)置附加的參數(shù),鏈接系統(tǒng)庫(kù)
--with-ld-opt=parameters