CentOS8 已經發布了,會有越來越多的IT部門來使用它,先裝個 Nginx,把業務跑起來再說吧!
Lets go!
1, create repo
vi /etc/yum.repos.d/nginx.repo
添加:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
2,使用 dnf/yum 安裝 nginx
dnf install nginx
3,在防火牆中,開放業務端口,Open HTTP and HTTPS ports on firewall
firewall-cmd --zone=public --permanent --add-service=http
firewall-cmd --zone=public --permanent --add-service=https
firewall-cmd --zone=public --permanent --add-service=ssh
firewall-cmd --reload
閱讀更多 你永遠得不到的小老弟 的文章