没有路由是常见问题,一般就两个原因:
1.防火墙没放行 服务+端口 firewalld-cmd
2.selinux安全设置 semanage
1.web服务能提供/var/www/html下所有现有HTML文件
2.web为82上提供内容,非默认的80端口
3 在系统启动时自启动
#1.防火墙放行 firewalld-cmd --add-port=82/tcp firewalld-cmd --add-service=http #2.文本权限设置 restorecon -R /var/www/html/ #3.selinux设置 setenforce 0 semanage port -l|grep http semanage port -a -t http_port_t -p tcp 82 setenforce 1 systemctl restart httpd #4.服务开机启动 systemctl status httpd systemctl enable httpd --now #status 结果 /usr/lib/systemd/system/httpd.service enable



