阿帕奇2不能判断服务器可靠的完全合格域名,
最简单解决办法
After configurated the apache2 setting in my old ubuntu server(8.04), I restarted the apache2 by input this command:
当我在8.04版本的ubuntu老服务器上更改阿帕奇2的一些配置后,键入这命令重启服务:
$sudo /etc/init.d/apache2 restart
But was informed that apache2 didn’t ‘realize’ the server’s domain name:
不期,系统提示阿帕奇2 不认服务器的完全合格域名:
apache2: Could not reliably determine the server’s fully qualified domain name
I searched this problem in Bing. And there was someone talking about on this. But I don’t think that is a good way to solve the problem.
用必应搜索解决办法,我在这里看到相关讨论,但认为里面的不够好。
The better way should be here. Thanks firstboy0513.
比较好的解决办法来自firstboy0513的这篇日志。感谢这位网友。
Now I provide my method, just one command:
现在说一下我最终的解决办法,只需一条命令:
$ echo “ServerName localhost” | sudo tee /etc/apache2/conf.d/fqdn
Then problem was solved:
问题就解决了。
$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 [ OK ]