zoukankan      html  css  js  c++  java
  • CentOS 6.6 nginx install

    /*************************************************************************
     *                    CentOS 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 ~]# 
  • 相关阅读:
    如何在调试PHP代码时不显示错误信息
    如何实现网页组件的随意拖拽
    如何做一个简易的HTML代码编辑器
    如何在网页中动态显示时间
    Luogu2577 | [ZJOI2005]午餐 (贪心+DP)
    Luogu2345 | 奶牛集会 (树状数组)
    解决NahimicSvc32.exe与bilibili直播姬的音频不兼容的问题
    STL函数 lower_bound 和 upper_bound 在算法竞赛中的用法
    电子取证 | 第三届美亚杯(2017)个人赛题解
    快速安装字体.bat批处理脚本
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/6103694.html
Copyright © 2011-2022 走看看