有什么办法可以改变端口号和本地主机的名称上的Apache Web服务器在Ubuntu上运行?
是。 查看httpd.confconfiguration文件中的Listen参数。
编辑文件:
/etc/apache2/apache2.conf
或文件在:
/etc/apache2/sites-enabled/
去/ etc / apache2 / sites-enabled /
<VirtualHost *:[whateverport]> ... ServerAlias [whatever] ... </VirtualHost>
并将侦听添加到/etc/apache2/ports.conf中