如何解决SVN连接被拒绝到客户端服务器
我有3台具有起搏器高可用性群集的服务器。我想使用svnsync创建SVN备份。
- 我在所有服务器上都安装了apache SVN,并且可以通过浏览器访问SVN存储库。
- 使用“ svnadmin create myrepo”以及用户名和密码在服务器上创建存储库。
- nano / var / lib / svn / myrepo / hooks / pre-revprop-change
#!/bin/sh
REVISION=${2}
# Launch (backgrounded) sync jobs for each slave server.
svnsync copy-revprops --username admin --password Qwe12345! http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync copy-revprops --username admin --password Qwe12345! http://xx.xxx.xxx.207/svn/myrepo ${REVISION} &
exit 0
/ var / lib / svn / myrepo / hooks / post-commit
#!/bin/sh
# Launch (backgrounded) sync jobs for each slave server
svnsync sync --username admin --password Qwe12345! http://xx.xxx.xxx.206/svn/myrepo &
-
使该文件成为可执行文件
chmod + x / var / lib / svn / myrepo / hooks / pre-revprop-change
chmod + x / var / lib / svn / myrepo / hooks / post-commit
在这里出现错误。
第一次尝试
svnsync init --username admin --password Qwe12345! file:///var/lib/svn/myrepo/ http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svnsync: E000111: Error running context: Connection refused
第二次尝试
svnsync init --username admin --password Qwe12345! file:///var/lib/svn/myrepo/ --allow-non-empty
http://xx.xxx.xxx.206/svn/myrepo ${REVISION} &
svnsync: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svnsync: E000111: Error running context: Connection refused
检查网络
svn checkout http://xx.xxx.xxx.206/svn/myrepo
svn: E170013: Unable to connect to a repository at URL 'http://xx.xxx.xxx.206/svn/myrepo'
svn: E000111: Error running context: Connection refused
使用端口80的我的svn
请帮助我
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。