apache安装完启动,需要设置ServerName

回复 收藏

[root@lamp httpd-2.2.31]# /usr/local/apache2/bin/apachectl restart

httpd: apr_sockaddr_info_get() failed for lamp

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

将配置文件改成# vim /usr/local/apache2/conf/httpd.conf

ServerName localhost:80  这里的localhost是直接填localhost还是填自己的虚拟机名字?

2017-01-08 17:25 举报
已邀请:
0

乐佳

赞同来自:

填你虚拟机的主机名

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: