Ubuntu16.04.5LTS安装SVN的过程
程序员文章站
2022-09-10 18:38:11
本文简单介绍ubuntu系统下svn的搭建过程
更新源
sudo apt-get update
安装svn
sudo apt-get install subversion
创...
本文简单介绍ubuntu系统下svn的搭建过程
更新源
sudo apt-get update
安装svn
sudo apt-get install subversion
创建文件夹
sudo mkdir /home/svn sudo mkdir /home/svn/repository sudo chmod -r 777 /home/svn/repository sudo svnadmin create /home/svn/repository cd /home/svn/repository/ sudo chmod -r 777 db
修改svnserve.conf
cd /home/svn/repository/conf/ sudo vi svnserve.conf
修改这四行如下所示
anon-access = none 匿名用户不可读 auth-access = write 权限用户可写 password-db = passwd 密码文件为passwd authz-db = authz 权限文件为authz ### users have read and write access to the repository. anon-access = none auth-access = write ### the password-db option controls the location of the password ### database file. unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### if sasl is enabled (see below), this file will not be used. ### uncomment the line below to use the default password file. password-db = passwd ### the authz-db option controls the location of the authorization ### rules for path-based access control. unless you specify a path ### starting with a /, the file's location is relative to the ### directory containing this file. the specified path may be a ### repository relative url (^/) or an absolute file:// url to a text ### file in a subversion repository. if you don't specify an authz-db, ### no path-based access control is done. ### uncomment the line below to use the default authorization file. authz-db = authz ### the groups-db option controls the location of the groups file.
修改password文件,添加访问用户
sudo vi passwd [users] # harry = harryssecret # sally = sallyssecret lidata = lidata429
给用户增加目录权限
sudo vi authz [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe # [/foo/bar] # harry = rw # &joe = r # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [/] lidata=rw
启动服务,并且监听81端口
sudo svnserve -d -r /home/svn --listen-port 81
查看svn是否启动
ps -ef | grep svnserve
停止服务
kill all svnserve
总结
以上所述是小编给大家介绍的ubuntu16.04.5lts安装svn的过程,希望对大家有所帮助
推荐阅读
-
MacOS安装Docker的过程及遇到的坑
-
详细CentOS-6.3安装配置SVN的方法
-
Mac上将brew安装的MySql改用Docker执行操作过程
-
在Windows系统下安装docker窗口的配置过程
-
Qt最新版5.12.2在Win10环境静态编译安装和部署的完整过程(VS2017)
-
CentOS7.x卸载与安装MySQL5.7的操作过程及编码格式的修改方法
-
win7-vs2012下安装.net frame work 的过程图文详解
-
WINDOWS 在安装WINDOWS ME过程中死机的解决方法
-
如何制作windows服务安装包? 服务安装包的制作过程
-
关于ORACLE图形化安装过程中出现的竖线的处理办法