<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post/3140/</link>
<title><![CDATA[解决httpd: Could not reliably determine the servers fully qualified domain name, using 127.0.0]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 05 Jun 2010 05:50:44 +0000</pubDate> 
<guid>http://jackxiang.com/post/3140/</guid> 
<description>
<![CDATA[ 
	httpd: Could not reliably determine the server&#039;s fully qualified domain name, using 127.0.0.1 for ServerName<br/>解决办法非常简单：<br/>root@raspberrypi:/etc/apache2# vi apache2.conf <br/># Include the virtual host configurations:<br/>ServerName&nbsp;&nbsp;localhost:80<br/>Include sites-enabled/<br/>root@raspberrypi:/etc/apache2# service apache2 restart<br/>[ ok ] Restarting web server: apache2 ... waiting ..<br/><br/>#vim /web/apache/conf/httpd.conf (在这里/web/apahce是我安装apache的目录，你默认安装的话应该是/usr/local/apache2/icons)<br/>找到#ServerName www.example.com:80&nbsp;&nbsp; 把#去掉，再重启apache即可没事了。<br/><br/>现象：<br/><div class="code">bogon:~/webserver/httpd-2.0.59 # /usr/local/apache2/bin/apachectl start<br/>httpd: Could not determine the server&#039;s fully qualified domain name, using 127.0.0.1 for ServerName<br/>httpd (pid 20183) already running</div><br/>這個問題應該是沒有在 /etc/httpd/conf/httpd.conf 中設定 ServerName&nbsp;&nbsp;<br/><br/><div class="code"> vi /usr/local/apache2/conf/httpd.conf </div><br/>最简单的，修改httpd.conf文件，增加:<br/>ServerName www.example.com:80<br/>我的改为:<br/><br/><div class="code">ServerName www.example.com:80</div><br/><br/>再次启动就正常了!<br/>------------------------------------------------------------------------------------------------------------------------------------------------------------<br/>apache2: Could not reliably determine the server&#039;s fully qualified domain name, using 127.0.1.1 for ServerName<br/>解决方案：<br/>用记事本打开 httpd.conf<br/>将里面的 #ServerName localhost:80 注释去掉即可。<br/>再执行 httpd<br/>然后可以通过浏览器访问 http://localhost:80 ，如果页面显示 “It works！” ，即表示apache已安装并启动成功。<br/>++++++++++++++++++++++++++++++++++++++++++++<br/>using localhost.localdomain for ServerName&nbsp;&nbsp;说不能确认服务器完全确认域名 localhost.localdoman&nbsp;&nbsp;这个问题怎么解决<br/>最佳答案： <br/>vi /etc/httpd/conf/httpd.conf&nbsp;&nbsp; 加入一句&nbsp;&nbsp;ServerName&nbsp;&nbsp;localhost:80<br/>解决步骤：<br/>为了解决这个问题，你需要编辑下面这个httpd.conf文件，打开它并根据如下操作进行编辑：<br/>[c-sharp] view plaincopy<br/>sudo gedit /etc/apache2/httpd.conf&nbsp;&nbsp;<br/>默认的httpd.conf是个空文件，现在向里面加入如下内容：<br/>[c-sharp] view plaincopy<br/>ServerName localhost&nbsp;&nbsp;<br/>保存并退出。<br/>------------------------------------------------------------------------------------------------------------------------------------------------------------<br/><br/>AH00558: httpd: Could not reliably determine the server&#039;s fully qualified domain name, using localhost.localdomain. Set the &#039;ServerName&#039; directive globally to suppress this message<br/>httpd (pid 7907) already running<br/>修改：去掉注释即可。<br/># If your host doesn&#039;t have a registered DNS name, enter its IP address here.<br/>#<br/>ServerName www.example.com:8080<br/><br/><br/>解决方案：<br/>进入apache的安装目录:<br/>Windows : D:&#92;Program Files&#92;Apache Software Foundation&#92;Apache2.2&#92;conf<br/>linux : /usr/local/apache/conf<br/>用记事本打开httpd.conf<br/>将里面的#ServerName localhost:80注释去掉即可。<br/>再执行httpd<br/>然后可以通过浏览器访问http://localhost：80，如果页面显示“It works！”，即表示apache已安装并启动成功。
]]>
</description>
</item><item>
<link>http://jackxiang.com/post/3140/#blogcomment63903</link>
<title><![CDATA[[评论] 解决httpd: Could not reliably determine the servers fully qualified domain name, using 127.0.0]]></title> 
<author>谢谢 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Sat, 10 Aug 2013 12:29:03 +0000</pubDate> 
<guid>http://jackxiang.com/post/3140/#blogcomment63903</guid> 
<description>
<![CDATA[ 
	谢谢啦
]]>
</description>
</item>
</channel>
</rss>