yum install -y nginx
systemctl start nginx
firewalld-cmd –zone=public –add-port=80/tcp –permanent #默认开启80端口
systemctl firewalld restart #重启防火墙,让配置生效systemctl enable nginx #设置开机启动
,访问http://localhost,如下图所示
安装nginx
最新推荐文章于 2024-04-10 17:56:19 发布
yum install -y nginx
systemctl start nginx
firewalld-cmd –zone=public –add-port=80/tcp –permanent #默认开启80端口
systemctl firewalld restart #重启防火墙,让配置生效
systemctl enable nginx #设置开机启动
,访问http://localhost,如下图所示