- NGINX Cookbook
- Tim Butler
- 99字
- 2021-07-03 00:04:18
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.
推薦閱讀
- C及C++程序設計(第4版)
- Mastering Entity Framework Core 2.0
- Learning C++ Functional Programming
- 樂高機器人設計技巧:EV3結構設計與編程指導
- 實戰低代碼
- GitLab Repository Management
- 名師講壇:Java微服務架構實戰(SpringBoot+SpringCloud+Docker+RabbitMQ)
- SSM輕量級框架應用實戰
- EPLAN實戰設計
- PhoneGap:Beginner's Guide(Third Edition)
- Mathematica Data Analysis
- Mastering Android Game Development
- Python機器學習算法: 原理、實現與案例
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- HoloLens與混合現實開發