今天调用接口总是出现返回这样一个页面
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.6.0</center>
</body>
</html>
最后解决方法:是因为没有配置host,配置方法win7(我的是win7)
找到C:\Windows\System32\drivers\etc下hosts文件,将你所需要配置的网站ip和域名配置进去(hosts文件里面有example事例)
本文介绍了解决调用接口时遇到301 Moved Permanently错误的方法。通过在Win7系统的hosts文件中配置所需的网站IP和域名来解决此问题。
5323

被折叠的 条评论
为什么被折叠?



