<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>曾华水的博客 &#187; Vista</title>
	<atom:link href="http://www.mrzeng.com/tag/vista/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mrzeng.com</link>
	<description>NO.1 or Nothing</description>
	<lastBuildDate>Wed, 07 Sep 2011 12:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vista中无法使用localhost访问本机的解决方法</title>
		<link>http://www.mrzeng.com/post/vista-localhost-ip.html</link>
		<comments>http://www.mrzeng.com/post/vista-localhost-ip.html#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:57:02 +0000</pubDate>
		<dc:creator>zenghuashui</dc:creator>
				<category><![CDATA[Share]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.mrzeng.com/?p=198</guid>
		<description><![CDATA[最近，买了个笔记本，装的是vista，奇怪的是，装上服务器套件后，死活不能用localhost访问，但127.0.0.1可以。搜索了一下，解决办法如下： 找到WINDOWSSYSTEM32DRIVERSETCHOSTS 文件。HOSTS是文件名，这个文件没有扩展名。 用记事本打开它，发现多了一个 ::1 localhost 删了它，保存。问题解决。 相关日志Linux中修改ip的办法切换到root账户下 切换到/etc/sysconfig/network-scripts/目录下； 编辑网卡编码：vi ifcfg-ethX X为第X-1个网卡。 DEVICE=ethX 设备名称 ONBOOT=yes 计算...PHP获取客户端IP的几种方法PHP获取客户端IP有几个函数，下面介绍下三种常用的写法。 第一种： < ?php function GetIP() { //获取IP if ($_SERVER["HTTP_X_FORWARDED_FOR"]) $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; else if ($_SERVER["HTTP_C...]]></description>
			<content:encoded><![CDATA[<p>最近，买了个笔记本，装的是vista，奇怪的是，装上服务器套件后，死活不能用localhost访问，但127.0.0.1可以。搜索了一下，解决办法如下：<br />
<span id="more-198"></span></p>
<pre class=prettyprint>找到WINDOWSSYSTEM32DRIVERSETCHOSTS 文件。HOSTS是文件名，这个文件没有扩展名。

用记事本打开它，发现多了一个

::1             localhost

删了它，保存。问题解决。</pre>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li><a href="http://www.mrzeng.com/post/linux-change-ip-solution.html" title="Linux中修改ip的办法">Linux中修改ip的办法</a><br /><small>切换到root账户下

切换到/etc/sysconfig/network-scripts/目录下；

编辑网卡编码：vi ifcfg-ethX X为第X-1个网卡。

DEVICE=ethX                                        设备名称
ONBOOT=yes                                        计算...</small></li><li><a href="http://www.mrzeng.com/post/php-get-client-ip.html" title="PHP获取客户端IP的几种方法">PHP获取客户端IP的几种方法</a><br /><small>PHP获取客户端IP有几个函数，下面介绍下三种常用的写法。

第一种：

< ?php
function GetIP() { //获取IP 
    if ($_SERVER["HTTP_X_FORWARDED_FOR"]) 
        $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; 
    else if ($_SERVER["HTTP_C...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.mrzeng.com/post/vista-localhost-ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

