- 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.
推薦閱讀
- ThinkPHP 5實戰
- Learn to Create WordPress Themes by Building 5 Projects
- 垃圾回收的算法與實現
- Oracle從新手到高手
- 簡單高效LATEX
- aelf區塊鏈應用架構指南
- PLC編程及應用實戰
- 軟件架構:Python語言實現
- 網站構建技術
- Flutter跨平臺開發入門與實戰
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- 輕松上手2D游戲開發:Unity入門
- 零基礎學Scratch 3.0編程
- Building Business Websites with Squarespace 7(Second Edition)
- Scrapy網絡爬蟲實戰