linux svn解析

搭建:http://www.imooc.com/article/15642
http://www.imooc.com/article/13177

linux 操作svn
http://www.cnblogs.com/xulb597/archive/2012/07/02/2573575.html

svn钩子 ----自动同步

http://www.jb51.net/article/69234.htm

REPOS="$1"
REV="$2"

mailer.py commit "$REPOS" "$REV" /path/to/mailer.conf

SVN_PATH=/usr/bin/svn

WEB_PATH=/home/wwwroot/default/missed

SVN_USER=windy

SVN_PASS=windyboy

WEB_USER=root

LOG_PATH=/home/www/missed.log

echo date "+%Y-%m-%d %H:%M:%S" >> $LOG_PATH

echo whoami,$REPOS,$REV >> $LOG_PATH

$SVN_PATH update $WEB_PATH --username $SVN_USER --password $SVN_PASS --no-auth-cache >> $LOG_PATH

需要注意hooks权限问题。

查看端口:netstat -lnp|grep 3690

checkout时错误判断是否端口问题
端口问题:
1,检测端口是否开启
http://www.cnblogs.com/kerrycode/p/5609010.html

2.centos7 和低版本的防火墙区别
http://blog.csdn.net/u013035314/article/details/46683547
http://www.cnblogs.com/anne32184/p/5961806.html

使用firewalld :http://www.cnblogs.com/moxiaoan/p/5683743.html
3.防火墙设置
http://www.cnblogs.com/moxiaoan/p/5683743.html

4.firewall-cmd --state
systemctl stop firewalld.service
systemctl disable firewalld.service

你可能感兴趣的:(linux svn解析)