官术网_书友最值得收藏!

Packages – RHEL/CentOS

To install the latest NGINX release, add the NGINX mainline repository by adding the following to /etc/yum.repos.d/nginx.repo:

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

You'll also need to replace OS with either rhel or centos, and replace OSRELEASE with 5, 6, or 7, for your correct release.

You can check your version by running cat /etc/redhat-release.

Once you have the repository installed, refresh the packages and then install NGINX.

yum update
yum install nginx

If you have any issues, double check your repository for the correct syntax.

For further information, refer to the official documentation at http://nginx.org/en/linux_packages.html#mainline.
主站蜘蛛池模板: 保靖县| 阿巴嘎旗| 开远市| 九江市| 汶上县| 漳州市| 太仓市| 高陵县| 潼南县| 满洲里市| 鄂托克旗| 松江区| 综艺| 昭平县| 枣强县| 韶山市| 城固县| 天津市| 大埔县| 四平市| 大埔县| 双桥区| 柞水县| 林甸县| 蕉岭县| 钟山县| 同江市| 抚远县| 虹口区| 广水市| 内黄县| 中牟县| 仙桃市| 库车县| 鸡东县| 黄大仙区| 新昌县| 东阳市| 手机| 涪陵区| 开原市|