如何在浏览器访问vagrant中的网站

WBOY
Release: 2016-06-06 20:21:38
Original
1602 people have browsed it

浏览器如何访问vagrant中的网站,现在我想在里面随便建一个demo.php,我如何通过浏览器访问它?

回复内容:

浏览器如何访问vagrant中的网站,现在我想在里面随便建一个demo.php,我如何通过浏览器访问它?

在 vagrant 的虚拟机中部署 Web 环境之后直接访问虚拟机的 IP 地址即可访问。

https://docs.vagrantup.com/v2/networking/forwarded_ports.html
將vagrant中的port轉發出來即可
也可以用手動進virtualbox中修改

我install了apache2之后,在宿主机里如何访问,其他地方还需要配置吗

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!