localhost,127.0.0.1 和 本机网页地址IP 三者的区别

二次元同好交流新大陆
扫码下载App
汇聚2000万达人的兴趣社区下载即送20张免费照片冲印
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
&tomcat版本6.0.10,tomcat使用默认端口8080。一般在本机开发,都是通过myeclipse启动tomcat,在本机上使用http://localhost:8080可以访问tomcat欢迎界面。但是使用http://127.0.0.1:8080无法访问,使用本地ip地址http://192.168.1.3:8080也无法访问。解决方案如下:
修改Win7的防火墙配置。
1、开始----控制面板----系统和安全----windows防火墙----高级设置
2、选择“入站规则”----点击“新建规则”----“规则类型”选择“端口”----“下一步”----该规则应用于,选择“TCP”----“特定本地端口”输入“8080”(Tomcat使用的端口)----“下一步”----选择“允许连接”,点击“下一步”----何时应用该规则,默认全选,点击“下一步”----为该规则起一个名称,如“Tomcat开放8080端口”----点击“完成”
现在,Tomcat就能通过win7的防火墙了。3、修改tomcat配置文件,在tomcat的安装目录下的conf目录,如apache-tomcat-6.0.10\conf\server.xml,在设置端口地方,增加address="0.0.0.0",修改后结果如下:&Connector port="8080" protocol="HTTP/1.1" &&&&&&&&&&&&&& maxThreads="150" connectionTimeout="20000" &&&&&&&&&&&&&& redirectPort="8443" address="0.0.0.0" /&红色部分为增加内容。
阅读(11983)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'win7下tomcat在局域网无法通过本地ip访问,127.0.0.1无法访问,localhost可以访问解决方法',
blogAbstract:'我使用的win7版本是64位的&tomcat版本6.0.10,tomcat使用默认端口8080。一般在本机开发,都是通过myeclipse启动tomcat,在本机上使用http://localhost:8080可以访问tomcat欢迎界面。但是使用http://127.0.0.1:8080无法访问,使用本地ip地址http://192.168.1.3:8080也无法访问。解决方案如下:
修改Win7的防火墙配置。
blogTag:'win7,tomcat,localhost,127.0.0.1,局域网',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:9,
publishTime:1,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:2,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}二次元同好交流新大陆
扫码下载App
汇聚2000万达人的兴趣社区下载即送20张免费照片冲印
扫码下载App
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
月上西楼推荐阅读:
& 23:03:22
& 10:36:16
& 14:46:27
阅读(119)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'localhost 127.0.0.1和本机ip三者的区别',
blogAbstract:'localhost&不联网&不使用网卡,不受防火墙和网卡限制&',
blogTag:'javaweb',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:1,
publishTime:9,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'1',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}localhost,127.0.0.1,本地IP三者有什么区别?
[问题点数:40分,结帖人fibrlink_ksh_xs]
localhost,127.0.0.1,本地IP三者有什么区别?
[问题点数:40分,结帖人fibrlink_ksh_xs]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2011年9月 C/C++大版内专家分月排行榜第二2011年4月 C/C++大版内专家分月排行榜第二2010年11月 C/C++大版内专家分月排行榜第二
2011年6月 C/C++大版内专家分月排行榜第三
2013年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第七
2013年3月 C/C++大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。2016年一月
11121314151617
18192021222324
25262728293031
分享linux系统运维知识,专注linux运维技术与网站运维,linux服务监控,lnamp,mysql数据库,linux教程,linux学习,linux入门,linux命令,linux运维博客,shell脚本,linux集群,虚拟化,云计算推荐这篇日记的豆列
······

我要回帖

更多关于 本机网页地址 的文章

 

随机推荐