【发布时间】:2025-10-07 11:00:01
【问题描述】:
当我尝试重新启动 apache 发出 /etc/init.d/apache2 restart 我收到以下消息:
root@server:~# /etc/init.d/apache2 restart
* Restarting web server apache2 apache2: apr_sockaddr_info_get() failed for server
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
... waiting apache2: apr_sockaddr_info_get() failed for server
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]
root@server:~# cat /etc/hostname
iSell
root@server:~# hostname
server
root@server:~# hostname -f
hostname: Name or service not known
root@server:~# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
108.1.*.* eins
root@server:~#
注意:/etc/hosts 中 ip 末尾的两个星号是我在发帖时添加的。 注意2:假设我的域名是www.xyz.net
我想确切地知道我必须一步一步地做什么。 非常感谢!
【问题讨论】:
-
这与编程无关。请考虑在其他 SE 网站上发布。
-
这种行为只存在于ubuntu中
标签: apache configuration fqdn