Nginx——Nginx的安装目录详解(Centos7通过yum方式安装)

Posted 小志的博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Nginx——Nginx的安装目录详解(Centos7通过yum方式安装)相关的知识,希望对你有一定的参考价值。

一、安装目录(yum方式安装)

  • 通过 rpm -ql nginx 命令查看nginx安装目录

    [root@localhost ~]# rpm -ql nginx
    /etc/logrotate.d/nginx
    /etc/nginx/fastcgi.conf
    /etc/nginx/fastcgi.conf.default
    /etc/nginx/fastcgi_params
    /etc/nginx/fastcgi_params.default
    /etc/nginx/koi-utf
    /etc/nginx/koi-win
    /etc/nginx/mime.types
    /etc/nginx/mime.types.default
    /etc/nginx/nginx.conf
    /etc/nginx/nginx.conf.default
    /etc/nginx/scgi_params
    /etc/nginx/scgi_params.default
    /etc/nginx/uwsgi_params
    /etc/nginx/uwsgi_params.default
    /etc/nginx/win-utf
    /usr/bin/nginx-upgrade
    /usr/lib/systemd/system/nginx.service
    /usr/lib64/nginx/modules
    /usr/sbin/nginx
    /usr/share/doc/nginx-1.20.1
    /usr/share/doc/nginx-1.20.1/CHANGES
    /usr/share/doc/nginx-1.20.1/README
    /usr/share/doc/nginx-1.20.1/README.dynamic
    /usr/share/doc/nginx-1.20.1/UPGRADE-NOTES-1.6-to-1.10
    /usr/share/licenses/nginx-1.20.1
    /usr/share/licenses/nginx-1.20.1/LICENSE
    /usr/share/man/man3/nginx.3pm.gz
    /usr/share/man/man8/nginx-upgrade.8.gz
    /usr/share/man/man8/nginx.8.gz
    /usr/share/nginx/html/404.html
    /usr/share/nginx/html/50x.html
    /usr/share/nginx/html/en-US
    /usr/share/nginx/html/icons
    /usr/share/nginx/html/icons/poweredby.png
    /usr/share/nginx/html/img
    /usr/share/nginx/html/index.html
    /usr/share/nginx/html/nginx-logo.png
    /usr/share/nginx/html/poweredby.png
    /usr/share/vim/vimfiles/ftdetect/nginx.vim
    /usr/share/vim/vimfiles/ftplugin/nginx.vim
    /usr/share/vim/vimfiles/indent/nginx.vim
    /usr/share/vim/vimfiles/syntax/nginx.vim
    /var/lib/nginx
    /var/lib/nginx/tmp
    /var/log/nginx
    /var/log/nginx/access.log
    /var/log/nginx/error.log
    [root@localhost ~]#
    

二、安装目录详解

路径类型作用
/etc/logrotate.d/nginx配置文件nginx日志轮转,用于logrotate服务的日志切割
/etc/nginx/nginx.conf目录、配置文件
/etc/nginx/fastcgi_params
/etc/nginx/uwsgi_params
/etc/nginx/scgi_params
配置文件cgi配置相关,fastcgi配置
/etc/nginx/koi-utf
/etc/nginx/koi-win
/etc/nginx/win-utf
配置文件编码转换映射转化文件
/etc/nginx/mime.types配置文件设置http协议的Content-Type与扩展名对应关系
/usr/lib/systemd/system/nginx.service配置文件用于配置出系统守护进程管理器管理方式
/usr/lib64/nginx/modules目录nginx模块目录
/usr/sbin/nginx命令nginx服务的启动管理的终端命令
/usr/share/doc/nginx-1.20.1
/usr/share/man/man8/nginx.8.gz
文件目录nginx的手册和帮助文件
/var/log/nginx目录nginx日志目录

以上是关于Nginx——Nginx的安装目录详解(Centos7通过yum方式安装)的主要内容,如果未能解决你的问题,请参考以下文章

Nginx的安装目录详解

Nginx的安装及配置详解

Nginx的安装及配置详解

Nginx——Nginx的安装目录详解(Centos7通过yum方式安装)

nginx 安装目录详解

CentOS7 - Nginx安装目录与编译参数详解