标签:ons force etc 路径 eal system vim aaa ble
CentOS7
//安装
#yum install subversion
//查看版本
#svnserve --version
//建库
#mkdir -p /data/svn
#cd /data/svn
#svnadmin create project
//修改启动默认路径
#vim /etc/sysconfig/svnserve
OPTIONS="-r /data/svn"
//修改配置
#vim /data/svn/project/conf/svnserve.conf
anon-access=none //匿名用户权限
auth-access=write //认证用户权限
password-db=passwd //指定用户文件
authz-db=authz //用户授权文件
realm=project //域,与库名一致
//添加用户
#vim /data/svn/project/conf/passwd
[users]
admin = admin_password
//添加授权
#vim /data/svn/project/conf/authz
[project:/]
admin = rw
//关闭selinux
#setenforce 0 或修改selinux配置文件关闭
//启动
#systemctl start svnserve
#systemctl enable svnserve
//查看端口是否开启,默认3690
#netstat -ntpl
//开启防火墙
#firewall-cmd --add-port=3690/tcp
#firewall-cmd --add-port=3690/tcp --permanent
//测试
#mkdir /data/project
#cd /data/project
#svn co svn://localhost/project . //最后有个点
#touch aaa.txt
#svn ci -m "" //上传
#svn list svn://localhost/project //可看到aaa.txt则正常
//一些常用命令
#svn list //当前版本号所有文件
#svn log
#svn log filename -v
#svn log -r 1 -v 查看特定版本号
#svn update -r version_no 更新至特定版本号
标签:ons force etc 路径 eal system vim aaa ble
原文地址:http://www.cnblogs.com/g120992880/p/7575570.html