gpt4 book ai didi

linux - apache linux (centos 7) 上的网页未出现在我局域网的其他计算机上

转载 作者:太空宇宙 更新时间:2023-11-04 03:35:30 26 4
gpt4 key购买 nike

我正在尝试通过浏览器连接到我的网页,因为我的局域网中的另一台计算机,我输入了我的网络服务器的IP地址(centos 7上的apache linux),但它可以连接。在我的网络服务器中,我输入了以下命令:

systemctl 启用 httpd.servicesystemctl 启动 httpd.servicenmap 本地主机 -p 80

一切正常,但我无法连接局域网上的其他计算机。我只有一个开关。

最佳答案

尝试禁用 SELinux。在 CentOS 上,编辑文件/etc/selinux/config。更改显示

的行

SELINUX=permissive

SELINUX=disabled

保存文件并重新启动服务器。

此外,停止默认防火墙。

sudo systemctl stop firewalld

并禁用它在启动时启动

sudo systemctl disable firewalld

关于linux - apache linux (centos 7) 上的网页未出现在我局域网的其他计算机上,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31724870/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com