无法打开localhost,该怎么解决

无法打开localhost,该怎么解决

无法打开localhost

我用的是XP系统,也用过熬游、世界之窗等浏览器,最近运行了一段代码后,发现无法打开http://localhost了,已重装了一遍IIS了,那段运行的代码如下:

@echo off 

echo 正在清除系统垃圾文件,请稍等…… 

del /f /s /q %systemdrive%*.tmp 

del /f /s /q %systemdrive%*._mp 

del /f /s /q %systemdrive%*.log 

del /f /s /q %systemdrive%*.gid 

del /f /s /q %systemdrive%*.chk 

del /f /s /q %systemdrive%*.old 

del /f /s /q %systemdrive%recycled*.* 

del /f /s /q %windir%*.bak 

del /f /s /q %windir%prefetch*.* 

rd /s /q %windir%temp & md %windir%temp 

del /f /q %userprofile%cookies*.* 

del /f /q %userprofile%recent*.* 

del /f /s /q “%userprofile%Local SettingsTemporary Internet Files*.*” 

del /f /s /q “%userprofile%Local SettingsTemp*.*” 

del /f /s /q “%userprofile%recent*.*” 

echo 清除系统LJ完成! 

echo. & pause 

我是把它写到记事本去,扩展名改成bat后双击运行的。

请问高手,该如何解决啊???



127.0.0.1



127.0.0.254




ping localhost

看是到哪个IP

C:WINDOWSsystem32driversetchosts

这个文件是不是被改了?




跟那段脚本应该没关系,看看你的网站属性里是不是指定了IP,把他改为“全部未分配”试试




不知道运行http://localhost后提示什么内容,是无法找到页,还是无法打开站点。如果无法打开站点,那不就是你输入的地址不对。




楼主说详细点啊.




是啊,楼主自己指细检查一下,是不是80给占用了




探讨

ping localhost

看是到哪个IP

C:WINDOWSsystem32driversetchosts

这个文件是不是被改了?



探讨

跟那段脚本应该没关系,看看你的网站属性里是不是指定了IP,把他改为“全部未分配”试试



探讨

不知道运行http://localhost后提示什么内容,是无法找到页,还是无法打开站点。如果无法打开站点,那不就是你输入的地址不对。



1你在那个目录下新建一个test.htm,然后把路径输全试下,如果可以,那就是因为你的当前目录没有默认网页。

2重新建立个站点,加个网页,看能不能访问,如果不能访问就进行第3步

3试下重新安装IIS,看能不能恢复.

无法打开localhost,该怎么解决

相关文章:

你感兴趣的文章:

标签云: