准备目录并设置权限
[root@localhost ~]# mkdir /var/svn
[root@localhost ~]# chown bohui:bohui /var/svn/
[root@localhost ~]# chmod 700 /var/svn/
安装java环境并关闭防火墙
[root@localhost ~]# yum -y install java-1.6.0
[root@localhost ~]# service iptables stop
chkconfig iptables offiptables: Setting chains to policy AC[ OK ]lter
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
[root@localhost ~]# chkconfig iptables off
[root@localhost ~]# exit
Logout
设置java环境变量
[bohui@localhost ~]$ export JAVA_HOME=/usr/lib/jvm/jre
解压文件
[bohui@localhost ~]$ cd /var/svn/
[bohui@localhost svn]$ tar -zxf CollabNetSubversionEdge-4.0.11_linux-x86_64.tar.gz
上传并替换\csvn\data目录下的csvn-production-hsqldb.properties、csvn-production-hsqldb.scrip至data/
上传并替换csvn\data\conf目录下的svn_access_file、svn_auth_file至data/conf
[bohui@localhost svn]$ csvn/bin/csvn start
Starting CSVN Console……
CSVN Console started
Initializing CSVN Console at http://localhost:3343/csvn. Please wait a moment for server to become available.
使用admin / raining即可访问
修改版本库父目录
[bohui@localhost svn]$ cd csvn/data/repositories/
[bohui@localhost repositories]$ pwd
/var/svn/csvn/data/repositories
修改备份目录
/var/svn/csvn/data/dumps
使用80端口,必须使用root账号
[bohui@localhost repositories]$ su –
Password:
[root@localhost ~]# chown root:nobody /var/svn/csvn/lib/httpd_bind/httpd_bind
[root@localhost ~]# chmod u+s /var/svn/csvn/lib/httpd_bind/httpd_bind
[root@localhost ~]#
原创文章,作者:wwenyunkui,如若转载,请注明出处:http://www.178linux.com/8732
评论列表(1条)
能有一些格式上的优化会更吸睛哦