當我嘗試重新啓動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