centos配置yum安装nginx
2017-11-02 16:04
357 查看
参考:
http://nginx.org/en/linux_packages.html http://www.cnblogs.com/hitwtx/archive/2012/02/13/2349742.html https://blog.csdn.net/lnboxue/article/details/74783885
首先,你需要知道你的centos发行版本: cat /etc/redhat-release
我的是6
用root权限在你的linux上执行: vi /etc/yum.repos.d/nginx.repo
写入
baseurl=http://nginx.org/packages/centos/6/$basearch/
centos是你的系统版本,red hat的话用rhel。
6 是发行版本,当前貌似只有6和7。
接下来,就可以执行 yum install nginx
http://nginx.org/en/linux_packages.html http://www.cnblogs.com/hitwtx/archive/2012/02/13/2349742.html https://blog.csdn.net/lnboxue/article/details/74783885
首先,你需要知道你的centos发行版本: cat /etc/redhat-release
我的是6
用root权限在你的linux上执行: vi /etc/yum.repos.d/nginx.repo
写入
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/6/$basearch/ gpgcheck=0 enabled=1
baseurl=http://nginx.org/packages/centos/6/$basearch/
centos是你的系统版本,red hat的话用rhel。
6 是发行版本,当前貌似只有6和7。
接下来,就可以执行 yum install nginx
相关文章推荐
- CentOS 6.7 配置 yum 安装 Nginx
- centos6.6直接yum安装nginx,并且支持php访问的配置
- CentOS 6.7 配置 yum 安装 nginx
- CENTOS 6.5 配置YUM安装NGINX
- Centos7下yum安装配置nginx与php
- CENTOS 6.5 配置YUM安装NGINX
- CentOS 6.7 配置 yum 安装 Nginx
- centos7下通过yum安装nginx及配置
- Centos6.5 通过yum安装nginx及配置
- CentOS 6.7 配置 yum 安装 Nginx
- CentOS 6.7下配置 yum 安装 Nginx。
- CENTOS 6.5 配置YUM安装NGINX
- CENTOS 6.5 配置YUM安装NGINX
- CentOS6.5 yum安装配置nginx 以及相关配置
- linux,Centos 6.3 yum安装Nginx+php+Mysql,配置防火墙,开启,关闭端口命令
- Centos7 yum安装nginx,vscode配置vue开发环境
- CentOS 6.5 配置yum安装Nginx
- CENTOS 6.5 配置YUM安装NGINX
- CentOS 下配置yum安装Nginx
- CentOS 7 Linux 中Yum方式安装Nginx的配置(咋个办呢 zgbn)