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

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.
主站蜘蛛池模板: 柳州市| 大丰市| 都江堰市| 贡山| 舒城县| 秦皇岛市| 宜昌市| 长泰县| 陆丰市| 石河子市| 梨树县| 灵璧县| 昭通市| 天柱县| 安化县| 邵东县| 芦溪县| 宣城市| 英超| 刚察县| 察隅县| 永顺县| 巫山县| 龙岩市| 苗栗市| 璧山县| 洪湖市| 濉溪县| 什邡市| 肥乡县| 广安市| 博客| 宁远县| 连山| 芜湖县| 三台县| 中西区| 溆浦县| 清水河县| 汕尾市| 罗平县|