以centos6.5 为基础配nginx的yum安装方式:
    # uname -r
    2.6.32-431.el6.x86_64
    # uname -m
    x86_64
    # cat /etc/issue
    CentOS release 6.5 (Final)

利用网络,构建nginx的yum仓库。

# vim /etc/yum.repos.d/nginx.repo
    [nginx]
    name=nginx repo
    baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
    gpgcheck=0
    enabled=1

使用指定的新建的nginx安装nginx。

# yum install nginx --enablerepo=nginx -y
    查看nginx的版本及加载模块信息
        # nginx -vV
    nginx version: nginx/1.10.2
    built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) 
    built with OpenSSL 1.0.1e-fips 11 Feb 2013
    TLS SNI support enabled
    configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-file-aio --with-threads --with-ipv6 --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
    查看nginx都所有安装目录:
        # rpm -ql nginx
    /etc/logrotate.d/nginx
    /etc/nginx
    /etc/nginx/conf.d
    /etc/nginx/conf.d/default.conf
    /etc/nginx/fastcgi_params
    /etc/nginx/koi-utf
    /etc/nginx/koi-win
    /etc/nginx/mime.types
    /etc/nginx/modules
    /etc/nginx/nginx.conf
    /etc/nginx/scgi_params
    /etc/nginx/uwsgi_params
    /etc/nginx/win-utf
    /etc/rc.d/init.d/nginx
    /etc/rc.d/init.d/nginx-debug
    /etc/sysconfig/nginx
    /etc/sysconfig/nginx-debug
    /usr/lib64/nginx
    /usr/lib64/nginx/modules
    /usr/sbin/nginx
    /usr/sbin/nginx-debug
    /usr/share/doc/nginx-1.10.2
    /usr/share/doc/nginx-1.10.2/COPYRIGHT
    /usr/share/man/man8/nginx.8.gz
    /usr/share/nginx
    /usr/share/nginx/html
    /usr/share/nginx/html/50x.html
    /usr/share/nginx/html/index.html
    /var/cache/nginx
    /var/log/nginx

本文转自 swallow_zys  51CTO博客,原文链接:http://blog.51cto.com/12042068/1894462,如需转载请自行联系原作者

yum 方式安装nginx相关推荐

  1. 【Linux】循序渐进学运维-CentOS7使用yum方式安装nginx

    文章目录 前言 测试环境 安装前准备 1. 安装前准备 2. To set up the yum repository(添加源) 安装nginx 1. 查看nginx源是否添加成功 2. 安装并查看 ...

  2. centos yum方式安装nginx 并支持https

    https://www.jianshu.com/p/f5376bba4a60 转载于:https://www.cnblogs.com/falcon-fei/p/11159741.html

  3. yum工具安装Nginx

    2019独角兽企业重金招聘Python工程师标准>>> Nginx官网:nginx.org ,选择稳定的版下载安装,此处我选择下载1.14.2版本,以下是yum工具安装方式: yum ...

  4. Linux state 方式 安装nginx 服务

    第3章 Linux state 方式安装nginx 服务 3.1 State 方式安装nginx 1,创建相应的目录 a)Mkdir –p /srv/nginx 2,生成nginx.sls 文件 a) ...

  5. yum标准化安装nginx最新版

    yum标准化安装nginx最新版 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 ...

  6. Centos 利用yum源安装 nginx stream模块

    环境 CentOS 7.9 (腾讯云服务器) nginx 1.20.1 配置stream参考这里. nginx 动态模块 nginx 1.9.11 开始增加加载动态模块支持,从此不再需要替换nginx ...

  7. 【Zabbix】yum方式安装zabbix

    前言 redhat 7.0 (查看redhat版本: cat /etc/redhat-release) zabbix 3.4 yum方式安装zabbix Zabbix介绍 Zabbix(音同 za:b ...

  8. centos7 yun安装mysql,CentOS7 yum方式安装MySQL5.7

    MySQL 完整的初始密码规则可以通过如下命令查看: mysql> SHOW VARIABLES LIKE 'validate_password%'; +-------------------- ...

  9. CentOS 7以yum方式安装zabbix3.2及配置文件详解

    一.zabbix简介与环境准备 简介详见 ---> zabbix简介 环境准备: CentOS 7(node7):zabbix-server,web,mysql,agent mariadb:5. ...

最新文章

  1. LoadRunner系统架构简介与运行原理
  2. 万众期待的kintone开发账号免费开放申请啦!
  3. Spring JDBC-Spring事务管理之数据库事务基础知识
  4. 微信分享时,描述内容怎么换行
  5. Python_str 的内部功能介绍
  6. RDIFramework.NET — 系列目录 — 基于.NET的快速信息化系统开发框架
  7. VMWare 虚拟机 安装 Mac OS X
  8. 解决启动nginx时报80端口被占用的问题
  9. HCIE Security PKI 备考笔记(幕布)
  10. html解决ajax调用跨域,JQuery Ajax执行跨域请求数据的解决方案
  11. 在Windows上安装jupyter notebook的scala kernel —— jupyter-scala
  12. fckeditor for php 下载,FCKeditor 的配置和使用方法(for PHP)
  13. 计算机软件资产代码,事业单位六大类固定资产代码.xls
  14. 软件工程中的十三种文档
  15. 【解决办法】adobe audition打不开 显示MSVCR71.dll丢失
  16. 显示风场的某一局部区域,实现多分辨率
  17. 百万用户同时在线游戏服务器架构实现.doc 基于epoll 通信模型
  18. python读取图片像素矩阵
  19. [美国访问学者]J1签证和商务B1签证的区别
  20. 命名空间又称名字空间,英文名:Namespace

热门文章

  1. linux关闭硬件蜂鸣器,linux 关闭主板上的蜂鸣器声音
  2. c语言中go的作用,go语言与c语言的相互调用
  3. 【面试练习题】存在序列:1,1/2,2/3,3/5,5/8,8/13...,求前10项的和
  4. tensorflow只用CPU运行
  5. 【新星计划】MATLAB-多项式计算
  6. 昆兰士科技大学计算机排名,昆士兰科技大学QS排名第几?2019年综合揭晓
  7. android webview tel:,Android WebView“tel:”和“mailto:”链接显示未找到网页
  8. mysql为什么采用b树_为什么MongoDB采用B树索引,而Mysql用B+树做索引
  9. 在一个无序的int数组上构建一个最小堆的时间复杂度_漫画:寻找无序数组的第k大元素(修订版)...
  10. 数据结构实验之栈与队列四:括号匹配