开发者社区> 问答> 正文

CentOS7镜像有问题

为什么安装 nginx 后配置文件什么的都没有  .




/etc/nginx/con.f/  主要是这里


而且 显示 基于 nginx 和 fedora

展开
收起
gclove 2015-03-11 17:41:43 6682 0
2 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。
    楼主您好,

    我在家里,用CentOS 6 系统测试,如果执行 yum install nginx,您所说的/etc/nginx/conf.d/ 下边还有文件的。

    [root@localhost etc]# rpm -ql nginx
    /etc/logrotate.d/nginx
    /etc/nginx
    /etc/nginx/conf.d
    /etc/nginx/conf.d/default.conf
    /etc/nginx/conf.d/ssl.conf
    /etc/nginx/conf.d/virtual.conf
    /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
    /etc/rc.d/init.d/nginx
    /etc/sysconfig/nginx
    /usr/lib64/perl5/vendor_perl/auto/nginx
    /usr/lib64/perl5/vendor_perl/auto/nginx/nginx.so
    /usr/lib64/perl5/vendor_perl/nginx.pm
    /usr/sbin/nginx
    /usr/share/doc/nginx-1.0.15
    /usr/share/doc/nginx-1.0.15/CHANGES
    /usr/share/doc/nginx-1.0.15/LICENSE
    /usr/share/doc/nginx-1.0.15/README
    /usr/share/man/man3/nginx.3pm.gz
    /usr/share/man/man8/nginx.8.gz
    /usr/share/nginx/html/404.html
    /usr/share/nginx/html/50x.html
    /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/indent/nginx.vim
    /usr/share/vim/vimfiles/syntax/nginx.vim
    /var/lib/nginx
    /var/lib/nginx/tmp
    /var/log/nginx





    2015-03-11 19:55:40
    赞同 展开评论 打赏

  • 默认页面 :     Welcome to nginx on Fedora!

    =====================================================================================================================
    Package                          Arch                   Version                          Repository            Size
    =====================================================================================================================
    Installing:
    nginx                            x86_64                 1:1.6.2-4.el7                    epel                 505 k
    Installing for dependencies:
    GeoIP                            x86_64                 1.5.0-9.el7                      base                 709 k
    gd                               x86_64                 2.0.35-26.el7                    base                 146 k
    gperftools-libs                  x86_64                 2.1-1.el7                        epel                 267 k
    libXpm                           x86_64                 3.5.10-5.1.el7                   base                  52 k
    libunwind                        x86_64                 1.1-3.el7                        epel                  61 k
    libxslt                          x86_64                 1.1.28-5.el7                     base                 242 k
    nginx-filesystem                 noarch                 1:1.6.2-4.el7                    epel                  13 k

    Transaction Summary
    =====================================================================================================================
    Install  1 Package (+7 Dependent packages)



    说错了 是 /etc/nginx/conf.d/ 下面啥子都没有

    -------------------------

    Re回2楼dongshan8的帖子
    嗯谢谢回复哈 .

    正确的做法是 ,先设定 nginx.org 里面的镜像地址 然后安装 .

    http:// nginx.org/packages/centos/

    6 找对应版本就可以了 .

    问题在 CentOS 7 的  镜像

    /etc/nginx/conf.d/ 下面啥子都没有

    启动 Nginx 服务后 , 页面是     Welcome to nginx on Fedora!  

    -------------------------

    ReCentOS7镜像有问题
    有正式版本了 ?

    我去试试再说哈

    -------------------------

    ReCentOS7镜像有问题
       敢问这个问题到底修复了没 ?
    2015-03-11 18:09:04
    赞同 展开评论 打赏
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载
4天实战 轻松玩转docker 立即下载