今天,我本地连上线上scorecore系统,更新代码时【命令:svn up】,
“svn up”错误,无法连接到xxx.xxx.xxx.xxx
原因:路由器ip变更过,导致该系统无法连接到网络。
解决方法:1.在本地输入http://192.168.1.1 进入路由器web管理界面;选择“路由器状态”
然后找到“因特网端口”中的ip地址的值。
2.输入如下命令“[admin@scorecore-98-1 scorecore-98-1]$ su root”
"[root@scorecore-98-1 scorecore-98-1]$ cd "
"[root@scorecore-98-1 ~]$ cd /" 切换到根目录下面
"[root@scorecore-98-1 /]$ cd etc/" 切换到etc目录下面
"[root@scorecore-98-1 etc]$ vi hosts" 编辑hosts文件
将从路由器上面找到的ip更新到hosts文件中。然后“esc”,":wq"就保存该文件了。
然后再svn up就可以了