1. 程式人生 > >代碼管理平臺

代碼管理平臺

svn

代碼管理平臺
  • 安裝svn
yum install subversion -y
  • 創建版本庫
mkdir -p /data/svnroot/myproject
svnadmin create /data/svnroot/myproject
ls /data/svnroot/myproject
conf  db  format  hooks  locks  README.txt
ls /data/svnroot/myproject/conf/
authz  passwd  svnserve.conf  //authz為權限文件,passwd為密碼文件
cd /data/svnroot/myproject/conf/
vim authz
[groups]
admins = apeng,user1
[/]
@admins = rw
* = r
[myprojfect:/]
user1 = rw

vim passwd
apeng = 361630a93f
user1 = 9c5fefb454
user2 = 32cfbbfb5c

vim svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz.db = authz
realm = /data/svnroot/myproject

svnserve -d -r /data/svnroot/

ps aux|grep svn|grep -v grep
root       2283  0.0  0.0 162200   656 ?        Ss   13:57   0:00 svnserve -d -r /data/svnroot/

netstat -tlnp|grep svn
tcp        0      0 0.0.0.0:3690            0.0.0.0:*               LISTEN      2283/svnserve

systemctl stop firewalld.service
iptables -nvL

代碼管理平臺