xampp 并访问局域网
我在物理机(Windows)和虚拟机(Fedorat)之间创建一个本地网络 我在 fedorat 上安装了 xampp,我想通过虚拟机的 ip 地址从我的物理机访问位于 /opt/lampp/htdocs/MyApplication 的 Web 应用程序 http://192.168.0.2/ 但它不起作用 我必须对 xampp 进行哪些更改才能使其可访问
I create a local network between my physical machine (windows) and my virtual machine (Fedorat)
I installed xampp on fedorat and I want to access my web application located in / opt / lampp / htdocs / MyApplication from my physical machine by ip address of the virtual machine
http://192.168.0.2/
But its not working
What changes must I do that on xampp to make it accessible
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的网络服务器是否正在运行?是否可以在本地(从您的 Fedora VM)访问网络服务器?
你说的不工作是什么意思?有很多事情可能是错误的...您收到 404 了吗?暂停?你们的机器在同一个子网吗?您可以从 Windows ping 通您的 Fedora 机器吗?
Is your webserver running and is it possible to access the webserver locally (from your Fedora VM)?
What do you mean by not working? There are so many things that could be wrong... Do you receive a 404? Timeout? Are your machines on the same subnet? Are you able to ping your Fedora machine from Windows?
曾经遇到过类似的问题。就我而言,这是因为防火墙设置。
尝试将您自己的计算机连接到与虚拟机连接的同一路由器中的 LAN 接入点。
我没有太多技术。背景,但如果您将其缩小到这个特定案例,也许其他人可以帮助您。
干杯。
Had a similar problem once. In my case, it was because of firewall settings.
Try connecting your own machine to a LAN access point in the same router as the VM is connected.
I don't have much tech. background, but maybe if you narrow it to this specific case, someone else can help you.
Cheers.
我从物理机 ping 我的虚拟机,效果很好
我在物理机上安装 wamp 多久了,我设置了访问本地网络并从我的虚拟机访问
所以两台机器之间的网络运行得很好
我的问题不是关于两台机器之间网络的建立,而是如何配置可通过以下方式访问的 XAMPP
网络中的其他机器
(我已经在 Windows 上遇到了 wamp pararail 的问题,我通过配置 wamp 解决了这个问题,但我记得更多我所做的事情)
I ping my VM from my physical machine and it works very well
How long have I install wamp on my physical machine and I set up for access to local network and I accessed from my VM
So the network between two machines running very well
my question is not about the establishment of networks between the two machines but rather how to configure XAMPP that it is accessible by
other machine in network
(I was already a problem on windows with wamp parail I solved by configuring wamp but I recall more of what I did)