Centos 7 install svn server, the most detailed history

Arrange on top of the recently installed svn server to help customers with two ways to install, yum command to install, easy to use simple and fast, but the source installation is more complicated, tried it both ways, yum command basic installation finished more than an hour but I have two days to get the source installation, compare egg pain, read online a lot of stuff, and stepped on a lot of pits, eventually the installation was successful, the need to share with people.
First, the environment Description
Operating System: CentOS 7
Subversion Version: 1.8.15
two, SVN installation

2.1 Subversion source code download
Download: http: //subversion.apache.org/download
select the version: subversion-1.8.15.tar.gz (note, this article will file all required installation process are stored in / usr / local / java / svn directory)

Extracting installer Subversion 2.2

#cd /usr/local/java/svn
#tar -zxvf subversion-1.8.15.tar.gz
#cd subversion-1.8.15
#./configure --prefix=/usr/local/subversion

The configure 2.3: error: NO Suitable APRUTIL found
the configure: the WARNING: the APR not found
. At The the Apache Portable Runtime (the APR) Library CAN BE not found
Please install the APR ON the this System and the configure Subversion
. At The Appropriate with the Option --with-apr
by You Probably need do something with at the Similar to the Apache
Portable Runtime Utility (APRUTIL) Library and the then the configure
Subversion with both-at the --with-apr and --with-apr-util Options.
the configure: error: NO Suitable the aPR found
after a search and found a lack of apr apr-util two dependencies.
2.4 Installation apr and apr-util
(less dependent packages are transmitted / usr / local / java / svn / dependPackage / down, and unzip in this directory)
2.4.1 download apr and apr-util
Download: http: //apr.apache.org/
download version: apr-1.5.2.tar.gz apr-util- 1.6.1.tar.gz
2.4.2 Installation apr

#cd /usr/local/java/svn/dependPackage
#tar -zxvf apr-1.5.2.tar.gz
#cd apr-1.5.2
#./configure --prefix=/usr/local/apr

This appears Tip: CAN not the Remove libtoolT’: No such file or directory 解决方案:编辑 configure文件,查找 $RM "$cfgfile" 这个地方,用#注释掉,然后重新编译安装就可以了。 ¨G2G **2.4.3 安装apr-util** ¨G3G **2.5 重新配置subversion(每次重新配置都要回到subversion-1.8.15目录下)** ¨G4G **2.5.1 出现提示:configure: error: Subversion requires SQLite 说明缺乏sqlite依赖包** 解决方案: get the sqlite 3.7.15.1 amalgamation from:http://www.sqlite.org/sqlite-amalgamation-3071501.zipunpack the archive using unzip and rename the resultingdirectory to:/RNA-data/software/S01_utilize/subversion-1.8.11/sqlite-amalgamation 下载sqlite-amalgamation-3071501.zip通过unzip解压到subversion-1.8.15/sqlite-amalgamation目录下 ¨G5G 再次配置subversion **2.5.2 出现提示:configure: error: subversion requires zlib** 解决方案:从http://zlib.net/下载zlib-1.2.8.tar.gz,并安装到/usr/local/zlib目录。 ¨G6G **2.6 重新配置subversion** ¨G7G **三、配置环境变量** 通过修改profile文件设置环境变量 ¨K13K ¨G8G ¨G9G **四、测试安装是否成功** ¨K14K ¨G10G 出现版本信息则安装subversion成功。 **五SVN版本库的建立** A.我选择的目录是 /home/svn/作为SVN版本库的根目录,命令为: ¨K24K B.比如,现在我有一个名为“project”的项目需要用SVN做版本管理,那么我可以在svn根目录下建立一个 /project目录,我最终目的想让项目托管到/project目录下。接下来我需要新建这个目录:/home/svn/project ,命令为: ¨K25K C.然后需要将/project目录设定为版本库,命令如下: ¨K26K D.设定/project目录为版本库后,会发现/project目录下会多出以下文件: ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190717094414390.png) **六、配置svn信息** 输入 ¨K27K conf下有如下文件 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20190717094617225.png) authz:负责账号权限的管理,控制账号是否读写权限 passwd:负责账号和密码的用户名单管理 svnserve.conf:svn服务器配置文件 vim authz`
configuration is as follows

Here Insert Picture DescriptionHere Insert Picture Description
[/] on behalf of all the resources under the root directory, if you want limited resources, you can add subdirectories to
xiaotongxue client link accounts rw representation gives this account can read and write permissions

 

vim passwd

Here Insert Picture DescriptionHere Insert Picture Description

vi svnserve.conf

Here Insert Picture DescriptionInsert described herein pictures
configuration information is explained as follows:

 

Anonymous access permissions, which can be read, write, none, the default is read

anon-access=none

The authorized user has write access

auth-access=write

Password for the database path

password-db=passwd

Access control file

authz-db=authz

Certification namespace, subversion authentication prompt will display inside, and as a key credential cache

realm=/var/svn/svnrepos

The default port 3690 open

firewall-cmd --zone=public --add-port=3690/tcp --permanent
firewall-cmd --reload #重启防火墙

Start svn

svnserve -d -r /var/svn/svnrepos

Entry

ps -aux|grep svn

View can be found successful start

Here Insert Picture DescriptionHere Insert Picture Description

Client Access server svn

Right-checkout, enter the address: svn: //192.168.137.128: 3690 / svn -test
password

Here Insert Picture DescriptionInsert picture described here
confirmed that the connection is successful, and generate svn-test repository locally, after the local project into svn-test, commit submitted successfully, svn been able to normal use

 

More please pay attention to public resources and tutorials number: non-Coban Coban.
If you think I write can also Give me praise, thank you, your encouragement is the driving force of my work

 

 

Guess you like

Origin www.cnblogs.com/liduchang/p/11778985.html