SVN 服务器建立

1.建立SVN库

svnadmin create

cat svndir/conf/passwd

修改SVN用户密码

chenht = 123456

2.建立目录权限

aliases

joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

groups

harry_and_sally = harry,sally

harry_sally_and_joe = harry,sally,&joe

soft = chenht

[/foo/bar]

harry = rw

&joe = r

* =

[repository:/baz/fuz]

@harry_and_sally = rw

* = r

/

@soft = rw

#chenht = rw

3.启动脚本

killall svnserve

nohup svnserve -d -r /home/chenht/res/svndir &

4.设置Linux启动脚本

cat /etc/init.d/svn

#!/bin/sh

case "$1" in

start) svnserve -d -r /home/chenht/res/svndir

;;

stop) killall svnserve

;;

restart)$0 stop

$0 start

;;

esac

exit 0

5.建立启动连接

lrwxrwxrwx 1 root root 15 Oct 18 20:32 /etc/rc0.d/K01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:32 /etc/rc1.d/K01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:34 /etc/rc2.d/S01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:34 /etc/rc3.d/S01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:34 /etc/rc4.d/S01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:34 /etc/rc5.d/S01svn -> /etc/init.d/svn

lrwxrwxrwx 1 root root 15 Oct 18 20:33 /etc/rc6.d/K01svn -> /etc/init.d/svn

相关推荐
三月枫火5 小时前
详解两种方法查看SVN的账号和密码
svn
n***33355 小时前
linux redis简单操作
linux·运维·redis
n***4436 小时前
Node.js HTTP模块详解:创建服务器、响应请求与客户端请求
服务器·http·node.js
2***s6726 小时前
【Go】Go语言基础学习(Go安装配置、基础语法)
服务器·学习·golang
xuchaoxin13757 小时前
cdn节点代理的副作用@fail2ban对接cdn封锁恶意请求ip@fail2ban封锁ip有效性问题
运维·网络·cdn·cloudflare
q***04637 小时前
Linux环境下Tomcat的安装与配置详细指南
linux·运维·tomcat
好奇的菜鸟8 小时前
在 WSL 中安装 Docker
运维·docker·容器
x***44018 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
2301_804947588 小时前
nginx的https的搭建
运维·nginx·https
K***43068 小时前
httpslocalhostindex 配置的nginx,一刷新就报404了
运维·nginx