CentOS release 6.6 nginx install

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

一、参考文档:
    Centos6 下的 nginx 安装
        http://blog.163.com/[email protected]/blog/static/17266492820121119111120164/

二、安装nginx:
    1. 错误:
        [[email protected] ~]# 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. 安装:
        [[email protected] ~]# 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!
        [[email protected] ~]# 
时间: 2024-11-05 13:32:56

CentOS release 6.6 nginx install的相关文章

CentOS release 6.6 FTP install

/************************************************************************* * CentOS release 6.6 FTP install * 说明: * 在VPS上安装FTP,以供有些时候无聊使用. * * 2016-11-26 深圳 南山平山村 曾剑锋 ************************************************************************/ 一.参考文档: C

nginx install in centos

1.在nginx下载rpm包,如nginx-release-centos-6-0.el6.ngx.noarch.rpm ,并安装(可用yum直接安装): 注:rpm包只是提供一个nginx源. 2.使用sudo yum install nginx,正式安装nginx: 3.安装完成后,访问127.0.0.1,显示Welcome to nginx!网页. nginx install in centos,布布扣,bubuko.com

服务器 CentOS上yum安装Nginx服务

一.更改yum源为网易的源加快速度 vi /etc/yum.repos.d/CentOS-Base.repo 更改内容如下 # CentOS-Base.repo # # This file uses a new mirrorlist system developed by Lance Davis for CentOS. # The mirror system uses the connecting IP address of the client and the # update status

在CentOS上编译安装Nginx+实验环境搭建+测试

0.说明 Nginx作为一款优秀的Web Server软件同时也是一款优秀的负载均衡或前端反向代理.缓存服务软件,很有必要搭建实验环境来对其进行学习. 1.实验环境 本次实验的测试环境使用的宿主机操作系统为Windows 7,在Vmware虚拟机安装CentOS 6.5,说明如下: 宿主机操作系统Windows 7 虚拟机安装的操作系统CentOS 6.5 虚拟机操作系统上网方式NAT 而当使用NAT的方式进行上网时虚拟机.宿主机之间的网络连接关系可如下所示: 关于为什么网络拓扑结构是这样的,这

centos 下yum 安装nginx

centos 下yum 安装nginx 1. 直接yum install nginx不行,要先处理下源: rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm 2. 查看源: yum info nginx 这时会提示有可安装的软件包 nginx | 2.9 kB 00:00nginx/primary_db | 15 kB 00:00可安装的软件包Nam

在CentOS 7中安装nginx服务器

简要地介绍一下,如何在CentOS 7中安装nginx服务器  下载对应当前系统版本的nginx包(package) # wget  http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm  建立nginx的yum仓库 # rpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpm  下载并安装nginx # yum inst

基于CentOS 5.4搭建nginx+php+spawn-fcgi+mysql高性能php平台

一.安装准备 1.1平台环境: CentOS 5.4 x86_64 GNU/Linux nginx-0.8.21 php-5.2.9 spawn-fcgi-1.6.3 mysql-5.1.34 .2系统安装及分区:1.2.1操作系统安装:         安装过程中选择最少的包,采用文本模式安装,不安装图形.1.2.3系统分区:         /boot  100M    (大约100左右)          SWAP  4G      物理内存的2倍(如果你的物理内存大于4G,分配4G即可)

CentOS release 6.5 (Final) 制作openstack用的镜像

一.系统环境 [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m[[email protected] ~]# uname -ra Linux fly.wukui.net 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 二.安装虚拟化软件 yum inst

centos 6.5 mono + nginx + asp.net 配置

centos 6.5 mono + asp.net 配置 yum update yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel bison pkgconfig