apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
来源:互联网 发布:sas编程 编辑:程序博客网 时间:2024/05/01 14:15
his is just a friendly warning and not reallya problem (as in that something does not work).
If you insert a
ServerNamelocalhost
in either httpd.conf or apache2.conf in /etc/apache2 and restart apache the notice will disappear.
If you have a nameinside /etc/hostname you can also use that name instead of localhost.
And it uses 127.0.1.1 if it is inside your /etc/hosts:
127.0.0.1localhost
127.0.1.1myhostname
Preferred method
Troubleshooting Apache
If you get this error:
apache2:Could not determine the server's fully qualified domain name,
using127.0.0.1 for ServerName
then use a text editor such as "sudonano" at the command line or "gksudo gedit" on the desktop tocreate a new file,
sudo nano/etc/apache2/conf.d/fqdn
or
gksu"gedit /etc/apache2/conf.d/fqdn"
then add
ServerNamelocalhost
to the file and save. This can all be done ina single command with the following:
echo "ServerName localhost" | sudotee /etc/apache2/conf.d/fqdn
But on Ubuntu 14.04:
echo "ServerName localhost" | sudotee /etc/apache2/conf-available/fqdn.conf
sudo a2enconf fqdn
Don't forget the ".conf" (withoutwill not work).
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName错误的解决方法
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
- Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerNam
- Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerNam
- AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0
- 关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
- 关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
- Ubuntu 下修改 Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
- Could not reliably determine the server's fully qualified domain name, using LAMP1.1 for ServerName
- apache2提示 Could not reliably determine the server's fully qualified domain name, 127.0.0.1
- httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1
- 【UFLDL】[2]主成分分析与白化
- Android更改工程名称
- 前缀表达式与后缀表达式
- hdu 1671 Phone List
- LeetCode Search for a Range
- apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for
- 属性参数
- hibernate的“ No suitable driver”错误
- Gson解析复杂的json数据
- 键盘VK键值列表
- SIFT检测特征点之找到主方向
- 在centos6上搭建git服务器
- 【牛腩新闻发布系统 一】如何高效写代码
- 使用PHP制作 简易员工管理系统之七(MVC实现用户信息增、删、改、查)