接上一篇配置多仓库相关命令

配置多仓库如果出现占不到上传文件;可以仔细阅读下面命令;另外还需可以自网上找资料配置一个sh文件;带到开机自动开启svn服务

netstat -antlp | grep svn
svnadmin create /var/www/html/lnm
svnadmin create /var/www/html/zx
cp /var/www/html/lnm/conf/authz /var/www/html/
cp /var/www/html/lnm/conf/passwd /var/www/html/
cd /var/www/html/
/usr/bin/svn
/usr/bin/svn checkout svn://ip地址/lnm /var/www/html/lnm
/usr/bin/svnserve -d -r /var/www/html
/usr/bin/svn checkout svn://ip地址/lnm /var/www/html/lnm
A /var/www/html/lnm/11.txt
A /var/www/html/lnm/12.txt
A /var/www/html/lnm/lnm_index1.php
A /var/www/html/lnm/songyanan001.txt
A /var/www/html/lnm/syn123456.txt

cp -f post-commit.tmpl post-commit

[root@iZ23lfjzmowZ hooks]# vim post-commit
[root@iZ23lfjzmowZ hooks]# vim post-commit
[root@iZ23lfjzmowZ hooks]# vim post-commit
[root@iZ23lfjzmowZ hooks]# chmod +x post-commit

第二个库
/usr/bin/svn checkout svn://ip地址/zx /var/www/html/zx
svn: Can't connect to host 'ip地址': Connection refused
[root@iZ23lfjzmowZ hooks]# /usr/bin/svnserve -d -r /var/www/html
[root@iZ23lfjzmowZ hooks]# ps -ef | grep svnserve

[root@iZ23lfjzmowZ hooks]# /usr/bin/svn checkout svn://ip地址/zx /var/www/html/zx

[root@iZ23lfjzmowZ zx]# pwd
/var/www/html/zx
[root@iZ23lfjzmowZ zx]# cd ../
[root@iZ23lfjzmowZ html]# ls
authz lnm passwd zx
[root@iZ23lfjzmowZ html]# cd lnm
[root@iZ23lfjzmowZ lnm]# cd ../
[root@iZ23lfjzmowZ html]# ls
authz lnm passwd zx
[root@iZ23lfjzmowZ html]# cd zx
[root@iZ23lfjzmowZ zx]# ls
[root@iZ23lfjzmowZ zx]# pwd
/var/www/html/zx

posted @ 2018-06-27 10:07  千载白云  阅读(141)  评论(0编辑  收藏  举报