首页 > 其他 > 详细

CentOS7 部署SVN服务器

时间:2019-02-24 21:31:09      阅读:152      评论:0      收藏:0      [点我收藏+]

yum install subversion

rpm -ql subversion

mkdir /application/svndata

mkdir /application/svnpasswd

svnadmin create /application/svndata/doc

cp authz passwd /application/svnpasswd/

chmod 700 /application/svnpasswd/*

vim /etc/sysconfig/svnserve

systemctl start svnserve.service

systemctl status svnserve.service

ps -aux|grep svn

 

检查安装:
rpm -ql subversion

[root@ftp:/root]
> rpm -ql subversion
/etc/subversion
/etc/sysconfig/svnserve
/run/svnserve
/usr/bin/svn
/usr/bin/svnadmin
/usr/bin/svndumpfilter
/usr/bin/svnlook
/usr/bin/svnrdump
/usr/bin/svnserve
/usr/bin/svnsync
/usr/bin/svnversion
/usr/lib/systemd/system/svnserve.service
..................

  

创建svn数据目录

mkdir /application/svndata

mkdir /application/svnpasswd

 

初始化仓库

svnadmin create /application/svndata/doc

  

拷贝并授权自定义账户和密码文件到自定义目录

cp authz passwd /application/svnpasswd/

chmod 700 /application/svnpasswd/*

 

修改 svnserver 默认仓库目录

vim /etc/sysconfig/svnserve

/etc/sysconfig/svnserve 
# OPTIONS is used to pass command-line arguments to svnserve.
# 
# Specify the repository location in -r parameter:
OPTIONS="-r /application/svndata"

 

启动服务并检查进程

systemctl start svnserve.service

systemctl status svnserve.service

ps -aux|grep svn

 

> systemctl status svnserve.service
● svnserve.service - Subversion protocol daemon
   Loaded: loaded (/usr/lib/systemd/system/svnserve.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2019-02-24 20:07:27 CST; 1h 22min ago
  Process: 78018 ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 78019 (svnserve)
    Tasks: 1
   Memory: 476.0K
   CGroup: /system.slice/svnserve.service
           └─78019 /usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid -r /application/svndata

Feb 24 20:07:27 ftp systemd[1]: Starting Subversion protocol daemon...
Feb 24 20:07:27 ftp systemd[1]: Started Subversion protocol daemon.


> ps -aux|grep svn
root      78019  0.0  0.0 162240   904 ?        Ss   20:07   0:00 /usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid -r /application/svndata
root      82590  0.0  0.0 112704   976 pts/0    S+   21:29   0:00 grep --color=auto svn

  

CentOS7 部署SVN服务器

原文:https://www.cnblogs.com/liweiming/p/10427940.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!