当我尝试重新启动Apache issueing /etc/init.d/apache2重新启动,我得到了以下信息:如何设置服务器的完全限定域名?
[email protected]:~# /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 ]
[email protected]:~# cat /etc/hostname
iSell
[email protected]:~# hostname
server
[email protected]:~# hostname -f
hostname: Name or service not known
[email protected]:~# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
108.1.*.* eins
[email protected]:~#
注:这两个星号的IP在/ etc年底/主机是由我添加在发布时。 注2:假设我的域名是www.xyz.net
我想确切地知道我必须一步一步来做。 非常感谢!
这不是编程相关的。请考虑在其他SE网站上发帖。 – jurgemaister 2012-05-21 07:46:31
此行为仅在ubuntu – 2012-08-30 14:17:09