
semanage port -a -t http_port_t -p tcp 82
semanage fcontext -m -t httpd_sys_content_t /var/www/html/file1 //必须先做这步再做restorecon
restorecon -Rv /var/www/html
firewall-cmd --permanent --add-port=82/tcp
firewall-cmd --reload
systemctl enable --now httpd

博客涉及网络和服务器运维方面内容,但具体内容缺失。网络和服务器运维在信息技术领域至关重要,关乎系统稳定运行。

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



