Archive 归档

loading ..

loading ..

## (一)Nginx 安装参考 ### 1)yum 安装(最新稳定版) ``` vim /etc/yum.repos.d/nginx.repo ``` ```gray [nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/nginx_signing.key module_hotfixes=true ``` ``` yum -y install nginx ``` 官方参考:http://nginx.org/en/linux_packages.html ## (二)本站已制作好的 REPO ``` wget -O /etc/yum.repos.d/nginx.repo http://Qpress.walle.org/down/yum/repo/nginx.repo #下载 REPO 文件 ``` ``` yum -y install nginx #yum 安装 nginx ```
wget -O /etc/yum.repos.d/nginx.repo http://Qpress.walle.org/down/yum/repo/nginx.repo && yum -y install nginx #合成命令