小编Cas*_*sen的帖子

虚拟机运行 CentOS,可以 ping 但不能访问 web 服务器

我第一次尝试设置 CentOS 服务器(曾经设置过 Linux 服务器)。安装很顺利,我安装了 LAMPP(以及 x86 所需的依赖项),使用了 lampp 安全工具,然后开始http://192.168.0.112:8888/使用 elinks。

到目前为止一切顺利……但后来我想从我网络中的其他计算机(包括 VM 的主机)访问服务器。但我无法让它工作并不断收到 404 的信息......

请注意,我在该网络上运行了另一个网络服务器(在端口 80 上),因此我在 httpd.conf 中更改Listen 80Listen 8888,并将路由器中的 8888 转发到 CentOS 安装的 IP(静态:192.168.0.112,根据 ifconfig)。

192.168.0.112返回:

Ping statistics for 192.168.0.112:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Run Code Online (Sandbox Code Playgroud)

服务器详情:

  • CentOS 6.5 最小,从 .iso 安装
  • LAMPP 1.8.1(通过 apachefriends.org …

windows centos virtualbox xampp virtual-machine

10
推荐指数
2
解决办法
5万
查看次数

标签 统计

centos ×1

virtual-machine ×1

virtualbox ×1

windows ×1

xampp ×1