码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS release 6.6 nginx install

时间:2016-11-26 11:31:58      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:run   proc   cts   resolved   nginx   ons   nload   set   bsp   

/*************************************************************************
 *                CentOS release 6.6 nginx install 
 * 说明:
 *     在VPS上安装nginx,以供有些时候无聊使用。
 * 
 *                                     2016-11-26 深圳 南山平山村 曾剑锋
 ************************************************************************/

一、参考文档:
    Centos6 下的 nginx 安装  
        http://blog.163.com/liwei1987821@126/blog/static/17266492820121119111120164/

二、安装nginx:
    1. 错误:
        [root@localhost ~]# yum install nginx
        Loaded plugins: fastestmirror
        Setting up Install Process
        Loading mirror speeds from cached hostfile
         * base: mirrors.usc.edu
         * extras: mirror.scalabledns.com
         * updates: mirror.hostduplex.com
        No package nginx available.
        Error: Nothing to do
    2. 解决办法:
        wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
        rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm 
    3. 安装:
        [root@localhost ~]# yum install nginx
        Loaded plugins: fastestmirror
        Setting up Install Process
        Loading mirror speeds from cached hostfile
         * base: mirrors.usc.edu
         * extras: mirror.scalabledns.com
         * updates: mirror.hostduplex.com
        nginx                                                    | 2.9 kB     00:00     
        nginx/primary_db                                         |  19 kB     00:00     
        Resolving Dependencies
        --> Running transaction check
        ---> Package nginx.i386 0:1.10.2-1.el6.ngx will be installed
        --> Finished Dependency Resolution

        Dependencies Resolved

        ================================================================================
         Package        Arch          Version                      Repository      Size
        ================================================================================
        Installing:
         nginx          i386          1.10.2-1.el6.ngx             nginx          844 k

        Transaction Summary
        ================================================================================
        Install       1 Package(s)

        Total download size: 844 k
        Installed size: 2.0 M
        Is this ok [y/N]: y
        Downloading Packages:
        nginx-1.10.2-1.el6.ngx.i386.rpm                          | 844 kB     00:01     
        Running rpm_check_debug
        Running Transaction Test
        Transaction Test Succeeded
        Running Transaction
        Warning: RPMDB altered outside of yum.
          Installing : nginx-1.10.2-1.el6.ngx.i386                                  1/1 
        ----------------------------------------------------------------------

        Thanks for using nginx!

        Please find the official documentation for nginx here:
        * http://nginx.org/en/docs/

        Commercial subscriptions for nginx are available on:
        * http://nginx.com/products/

        ----------------------------------------------------------------------
          Verifying  : nginx-1.10.2-1.el6.ngx.i386                                  1/1 

        Installed:
          nginx.i386 0:1.10.2-1.el6.ngx                                                 

        Complete!
        [root@localhost ~]# 

 

CentOS release 6.6 nginx install

标签:run   proc   cts   resolved   nginx   ons   nload   set   bsp   

原文地址:http://www.cnblogs.com/zengjfgit/p/6103694.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!