一、防火墙不能关闭,让其开放http协议https协议
二、该网站具备账户验证
三、https
dnf install httpd-tools -y
dnf install nginx -y
systemctl status firewalld.service //启动防火墙
systemctl enable --now nginx.service //启动nginx服务
一、
1. 放行 80(HTTP)和 443(HTTPS)端口

firewall-cmd --reload //重新加载防火墙规则,使配置生效
![]()
firewall-cmd --list-ports //查询端口是否放行成功
二、该网站具备账户验证
1.生成密码文件

密码为:123456
三、https
1.生成https自签名证书
![]()
2.创建网页根目录

3.nginx

重载nginx

测试:

输入完账号密码后:

1066

被折叠的 条评论
为什么被折叠?



