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

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.
主站蜘蛛池模板: 尚志市| 石楼县| 乐东| 西峡县| 绩溪县| 湾仔区| 瑞丽市| 沐川县| 梁山县| 栾城县| 平乐县| 敦化市| 五寨县| 宜昌市| 承德县| 伊吾县| 宁陵县| 富宁县| 滕州市| 灵寿县| 宁安市| 东明县| 义马市| 上思县| 革吉县| 托克托县| 琼海市| 内江市| 淮南市| 崇义县| 大田县| 保靖县| 曲靖市| 新营市| 霍城县| 启东市| 星座| 龙泉市| 都江堰市| 南宁市| 博兴县|