- 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.
推薦閱讀
- Vue.js入門與商城開發實戰
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- 21天學通C++(第6版)
- 算法訓練營:提高篇(全彩版)
- Learning Three.js:The JavaScript 3D Library for WebGL
- Python從入門到精通(第3版)
- Unity 5.X從入門到精通
- 深入理解Java虛擬機:JVM高級特性與最佳實踐
- 測試工程師Python開發實戰
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Visual FoxPro數據庫程序設計
- Learning Azure DocumentDB
- 計算機教學研究與實踐:2017學術年會論文集
- Effective DevOps with AWS
- Application Testing with Capybara