Could not reliably determine the server's fully qualified domain name?
2015-06-17 11:27
537 查看
This is just a friendly warning and not really a problem (as in that something does not work).
If you insert a
in either
restart apache the notice will disappear.
If you have a name inside
can also use that name instead of
And it uses
it is inside your
Preferred method
Troubleshooting Apache
If you get this error:
then use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to create a new file,
or
then add
to the file and save. This can all be done in a single command with the following:
But on Ubuntu 14.04:
Don't forget the ".conf" (without will not work).
If you insert a
ServerName localhost
in either
httpd.confor
apache2.confin
/etc/apache2and
restart apache the notice will disappear.
If you have a name inside
/etc/hostnameyou
can also use that name instead of
localhost.
And it uses
127.0.1.1if
it is inside your
/etc/hosts:
127.0.0.1 localhost 127.0.1.1 myhostname
Preferred method
Troubleshooting Apache
If you get this error:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
then use a text editor such as "sudo nano" at the command line or "gksudo gedit" on the desktop to create a new file,
sudo nano /etc/apache2/conf.d/fqdn
or
gksu "gedit /etc/apache2/conf.d/fqdn"
then add
ServerName localhost
to the file and save. This can all be done in a single command with the following:
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
But on Ubuntu 14.04:
echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf sudo a2enconf fqdn
Don't forget the ".conf" (without will not work).
相关文章推荐
- HDU 1337 The Drunk Jailer--(模拟题找规律)
- 当摄像机被墙挡住后,墙消失,相反则出现(三维坐标到二维坐标的转换实例Camera.main.WorldToScreenPoint)
- raid简介
- http://daikainan.iteye.com/blog/1405575
- hdu3555 - Bomb(2010 ACM-ICPC Multi-University Training Contest(12))数位dp
- UNIX文件结构(转自UNIX/AIX操作系统基础教程)
- Cuda kernel failed. Error: invalid device function
- macbook air电池保养方法
- GoldenGate过程 abend,报错OGG-00868 ORA-02396: Exceeded Maximum Idle Time, Please Connect Again
- Pentest Box Tools List of Tools contained in PentestBox
- BMap API(Baidu)与google.maps API(Google)
- 事件传递之响应链(Event Delivery: The Responder Chain)【转】
- Zencart 1.5.X – login does not work – session / cookie problem – explained
- TurboMail防黑客入侵邮件系统骗取货款
- RAC连接时的2种方式Connect Time Failver和taf
- LeetCode——Contains Duplicate II
- Filter Chain in J2EE : revise response header
- 分享百万皇后问题求解
- HDU 1151 Air Raid(最小路径覆盖)
- ACM-SG函数之Fibonacci again and again——hdu1848