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

一、nginx 安装

时间:2017-12-27 19:41:40      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:查看   yum   bsp   class   repo   search   epo   ble   body   

添加官方 yum 源

1 vim /etc/yum.repos.d/nginx.rep

输入以下内容(OS为你的系统,OSRELEASE 系统版本)

1 [nginx]
2 name=nginx repo
3 baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/
4 gpgcheck=0
5 enabled=1

列出可安装的 nginx

yum list |grep nginx

安装 nginx

1 yum install nginx 

查看安装版本以及编译参数

1 # 安装版本
2 nginx -v
3 # 编译参数
4 nginx -V

 

一、nginx 安装

标签:查看   yum   bsp   class   repo   search   epo   ble   body   

原文地址:https://www.cnblogs.com/jogen/p/8127273.html

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