linux - wget 失败,没有主机 wget 的路由

标签 linux apache networking wget httpd.conf

我在 centos 虚拟机上安装了 apache 文件服务器(IP:192.168.100.25)。从同一网络上的另一个 cent os 虚拟机(IP:192.168.100.26)我正在尝试使用 wget 从文件服务器下载文件

命令:wget --no-proxy http://192.168.100.25/FileTOdownload

我已经停止了 ip 表,我可以从文件服务器下载文件,但不能从另一台机器下载 在 httpd 配置文件中,我将服务器名称作为文件服务器 ip。从其他机器上我可以 ping 文件服务器

最佳答案

您需要在安装 Apache 的机器上设置默认网关和 DNS 服务器地址,然后重新启动 Apache。

同样适用于您使用浏览器的任何其他机器,包括 headless 浏览器,例如“wget”。

关于linux - wget 失败,没有主机 wget 的路由,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36578819/

相关文章:

linux - 如何禁用 GPU

php 脚本 require() 语句从浏览器运行时获取文件,但从 Plesk CRON 作业运行时不获取文件

apache - 在 Apache 上配置双向客户端 Auth SSL 证书

sockets - TCP拥塞会影响其他端口吗?

Java - 优化将值作为位写入字节缓冲区

c - 如何使用预编译的驱动模块制作WinDivert 程序?

linux - 从 txt 文件中搜索并替换许多文件?

linux - Gedit 片段插件 : How do you use the "tab trigger"?

java - Tomcat WAR 部署创建一个 404

apache - 如何将除 IP 地址以外的所有地址都重写为 std。 Apache 503 暂时down 错误信息?