编辑httpd.conf文件,设置ServerName, 如: ServerName localhost:80 转载于:https://www.cnblogs.com/tiger2soft/p/4863620.html