Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我运行了最新版本的 Ubuntu 和 Apache。Apache 适用于本地主机,但我无法弄清楚如何从同一无线网络上的笔记本电脑加载它。我尝试了很多不同的东西,但不确定哪些是相关的或有助于诊断问题。我是一个完整的 Linux 和网络菜鸟。感谢您的帮助!
编辑:澄清一下,Apache 在 Ubuntu 上运行。
Ubuntu 服务器。ifconfig 获取IP地址。转到您的笔记本电脑并在您的网络浏览器中输入地址。
如果您的 apache 在您的笔记本电脑上的 localhost 界面上运行,只需在浏览器窗口中输入:http://localhost/或http://127.0.0.1.
http://localhost/
http://127.0.0.1
如果您想让您的站点可用于无线网络中的其他主机,您必须使用指令ifconfig在您的外部 IP 地址(可以由实用程序显示)上运行 apache 。然后,如果您不使用虚拟主机,请使用绑定地址访问您的站点,否则使用配置的虚拟主机名。Listen
ifconfig
Listen