简体   繁体   English

无法连接到Cent OS Machine上的服务器

[英]Cannot connect to a server on Cent OS Machine

I have installed CentOS as a virtual machine (using Virtual Box), on my Windows OS. 我在我的Windows操作系统上安装了CentOS作为虚拟机(使用Virtual Box)。 I am running a lighttpd server on my CentOS machine. 我在CentOS机器上运行lighttpd服务器。 I am trying to access the server, from my browser, which is running on Windows, using the IP address and port number. 我正在尝试使用IP地址和端口号从我在Windows上运行的浏览器访问服务器。 But, I am getting the following error: Firefox can't establish a connection to the server at 10.209.145.152:8080 . 但是,我收到以下错误: Firefox can't establish a connection to the server at 10.209.145.152:8080 Also, when I am running the server on Ubuntu(as a virtual machine using VMware Player), I am able to connect from the Window's browser successfully. 此外,当我在Ubuntu上运行服务器(作为使用VMware Player的虚拟机)时,我能够成功从Window的浏览器连接。 Can anyone please suggest me, what I might have been missing on CentOS Machine. 任何人都可以建议我,我可能在CentOS机器上失踪了。 Thanks. 谢谢。

I would suggest that it is something that has to do with the VM setup. 我建议这与VM设置有关。 Compare the configuration of your Ubuntu VM and the CentOSVM. 比较Ubuntu VM和CentOSVM的配置。 In order to connect from Windows to the VM, I think that you need to setup a bridge network connection rather than NAT. 为了从Windows连接到VM,我认为您需要设置桥接网络连接而不是NAT。 But I am not sure, so I would suggest you try all the different options. 但我不确定,所以我建议你尝试所有不同的选择。

Hope that helps! 希望有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM