Centos6.8 yum  安装 nginx

 1:使用yum安装nginx,安装nginx库

[root@hadoop110 //]# rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

[root@hadoop110 //]# rpm -Uvh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
Retrieving http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
warning: /var/tmp/rpm-tmp.vs8gI4: Header V4 RSA/SHA1 Signature, key ID 7bd9bf62: NOKEY
Preparing...                ########################################### [100%]1:nginx-release-centos   ########################################### [100%]

 

2.使用下面命令安装nginx

[root@hadoop110 //]# yum -y install nginx

[root@hadoop110 //]# yum -y install nginx
已加载插件:fastestmirror, refresh-packagekit, security
设置安装进程
Loading mirror speeds from cached hostfile* base: mirror.bit.edu.cn* extras: mirror.bit.edu.cn* updates: mirrors.aliyun.com
base                                                                                              | 3.7 kB     00:00
extras                                                                                            | 3.4 kB     00:00
nginx                                                                                             | 2.9 kB     00:00
nginx/primary_db                                                                                  |  45 kB     00:00
updates                                                                                           | 3.4 kB     00:00
解决依赖关系
--> 执行事务检查
---> Package nginx.x86_64 0:1.14.2-1.el6.ngx will be 安装
--> 完成依赖关系计算依赖关系解决=========================================================================================================================软件包                   架构                      版本                                  仓库                      大小
=========================================================================================================================
正在安装:nginx                    x86_64                    1.14.2-1.el6.ngx                      nginx                    957 k事务概要
=========================================================================================================================
Install       1 Package(s)总下载量:957 k
Installed size: 2.6 M
下载软件包:
nginx-1.14.2-1.el6.ngx.x86_64.rpm                                                                 | 957 kB     02:17
运行 rpm_check_debug
执行事务测试
事务测试成功
执行事务
Warning: RPMDB altered outside of yum.正在安装   : nginx-1.14.2-1.el6.ngx.x86_64                                                                         1/1
----------------------------------------------------------------------Thanks for using nginx!Please find the official documentation for nginx here:
* http://nginx.org/en/docs/

Please subscribe to nginx-announce mailing list to get
the most important news about nginx:
* http://nginx.org/en/support.html

Commercial subscriptions for nginx are available on:
* http://nginx.com/products/----------------------------------------------------------------------Verifying  : nginx-1.14.2-1.el6.ngx.x86_64                                                                         1/1 已安装:nginx.x86_64 0:1.14.2-1.el6.ngx                                                                                        完毕!

 

3:启动nginx

[root@hadoop110 //]# service nginx start
正在启动 nginx:                                           [确定]
[root@hadoop110 //]# 

4.浏览器查看一下

http://localhost/

转载于:https://www.cnblogs.com/zhukaixin/p/10192313.html

CentOS 中安装nginx相关推荐

  1. centos中安装nginx

    2019独角兽企业重金招聘Python工程师标准>>> 用yum安装软件发现报错 解决This system is not registered with RHN 1.使用命令 cd ...

  2. linux slf4j.rpm,Centos下安装nginx rpm包

    1 在nginx官方网站下载一个rpm包,下载地址是:http://nginx.org/en/download.html wget http://nginx.org/packages/centos/6 ...

  3. linux nginx rpm 安装配置,Centos下安装nginx rpm包

    1 在nginx官方网站下载一个rpm包,下载地址是:http://nginx.org/en/download.html wget http://nginx.org/packages/centos/6 ...

  4. CentOS rpm安装Nginx和配置

    CentOS rpm安装Nginx和配置 官方下载地址: http://nginx.org/en/download.html 介绍 Nginx("engine x")是一款由俄罗斯 ...

  5. 如何在FreeBSD中安装Nginx,MySQL,PHP(FEMP)

    本文介绍如何在FreeBSD 13系统中安装Nginx.MySQL.和PHP服务. 系统环境 FreeBSD 13.0-RELEASE 更新系统 在安装任何软件之前更新系统是一个好习惯,以便检查系统更 ...

  6. 在Ubuntu/Fedora/CentOS中安装Gitblit

    在Ubuntu/Fedora/CentOS中安装Gitblit Git是一款注重速度.数据完整性.分布式支持和非线性工作流的分布式版本控制工具.Git最初由Linus Torvalds在2005年为L ...

  7. 安装32位mysql报错_在CentOS中安装32位或64位MySql报错error: Failed dependencies解决办法...

    在CentOS中安装MySql报错error: Failed dependencies解决办法 安装64位MySql报错内容如下: error: Failed dependencies: libaio ...

  8. CentOS中安装git

    在CentOS中安装git步骤如下: (1)$ yum install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel g ...

  9. centos 多个mysql,Centos中安装多个MySQL数据的配置实例

    这篇文章主要为大家详细介绍了Centos中安装多个MySQL数据的配置实例,具有一定的参考价值,可以用来参考一下. 感兴趣的小伙伴,下面一起跟随512笔记的小编小韵来看看吧! 注:本文档做了两个MYS ...

最新文章

  1. 微众银行殷磊:AI+卫星,从上帝视角洞察资产管理|BDTC 2019
  2. 宏基因组蚂蚁森林公益合种树项目,支持祖国绿化事业,让世界更美好
  3. 马化腾和扎克伯格,为什么抢着押注元宇宙?
  4. boost::type_erasure模块convert相关的测试程序
  5. Http中Get/Post请求区别
  6. 开发工具:IDEA 调试技巧,非常实用,欢迎收藏!
  7. 【ACR2015】依那西普按需维持治疗策略有效抑制RA骨破坏进展
  8. 多处理机的进程调度方式
  9. 在浙学大学计算机基础,艺术设计-浙江大学本科生院.PDF
  10. magento 1.7 中文语言包
  11. redis——通过redis实现服务器崩溃等数据恢复
  12. 微型计算机由5大部分,微机原理答案 (5)
  13. nodejs mysql 执行多条sql语句
  14. 通过C语言编程一个小游戏(乐趣无边)
  15. 数据分析师——软件篇
  16. 精选36道SQL练习题解析 from(原50道SQL练习题)
  17. 21世纪十大营销法则
  18. 轻松实现页面提交时,显示“提交中..” (转帖)
  19. 并行计算——冯·诺依曼结构
  20. 使用AVSpeechSynthesizer添加文本转语音的功能

热门文章

  1. 51单片机实战教程(28 人机界面编程五)
  2. 个人如何搭建云手机出租?ARM服务器搭建机房教程
  3. sql中的date的使用
  4. iOS 使用oc 版本的Lottie 库
  5. 32位/64位系统,jdk32位,64位,32/64位jdk编译出来的class和eclipse 32位和64位
  6. pycharm中出现pytest_pytest文档3-pycharm运行pytest
  7. GT sport真实赛道详解 - Brands Hatch | 伯蘭士赫治GP賽車場
  8. oauth2 ldap sso
  9. 计算机模拟触摸屏,西门子人机界面(触摸屏HMI)与虚拟仿真应用技术
  10. 读论文《Multi-Behavior Hypergraph-Enhanced Transformer for Sequential Recommendation》