【发布时间】:2016-05-25 04:12:32
【问题描述】:
我在 nitrous.io 云平台上运行 ubuntu 堆栈。
我想在上面运行 php 文件并在上面安装 apache2 服务器。
但我无法在其上运行 localhost;
当我在端口 3000 上预览它时,它给出了“port not specified”的错误。
请帮我解决这个问题。
【问题讨论】:
标签: php apache ubuntu localhost nitrousio
我在 nitrous.io 云平台上运行 ubuntu 堆栈。
我想在上面运行 php 文件并在上面安装 apache2 服务器。
但我无法在其上运行 localhost;
当我在端口 3000 上预览它时,它给出了“port not specified”的错误。
请帮我解决这个问题。
【问题讨论】:
标签: php apache ubuntu localhost nitrousio
apache default port is 80
configure port
change the local host to 0.0.0.0 instead 127.0.0.1
这样就可以解决问题了
[![输入配置端口][2]2
【讨论】:
/etc/apache2/ports.conf 用于端口配置/etc/apache2/apache2.conf