Linux Learning: Continuous Integration Chapter--SVN version management system installation and use-02

Source: Internet
Author: User

1. Installing Apache

A, install, and set to boot

Yum install httpd httpd-devel service httpd start chkconfig httpd on

B. Change the port to 80

vi/etc/httpd/conf/httpd.conf #ServerName www.example.com:80 ServerName localhost:80

C, visit http://192.168.175.9/

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8E/ED/wKioL1jPXGjhSlF1AABhXvPN4HU766.png "title=" 11111.png "alt=" Wkiol1jpxgjhslf1aabhxvpn4hu766.png "/>


2. Install SVN service

A. MoD DAV SVN module must be installed

Yum Install MOD_DAV_SVN Subversion

B. Restart Apache after installing SVN

Service httpd Restart

C, after installation will appear as follows file

[Email protected] conf.d]# cd/etc/httpd/conf.d/[[email protected] conf.d]# ll total 12-rw-r--r--. 1 root root 392 Jan 12:10 readme-rw-r--r--. 1 root root 1042 subversion.conf-rw-r--r--. 1 root root 299 Dec 04:27 welcome.conf [[email protected] conf.d]#

D. Check if the SVN module is installed in the test

ls/etc/httpd/modules/| grep SVN

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/8E/F1/wKioL1jPj6WDfoseAABbivHup8I098.png "title=" [ZC9 ( H{uh7][acwi2wcayvs.png "alt=" Wkiol1jpj6wdfoseaabbivhup8i098.png "/>

E, create the SVN Library home directory (multi-Library mode, a copy of the configuration file management of multiple libraries)

mkdir/svn/

F, modify the/etc/httpd/conf.d/subversion.conf configuration file, under the bottom join:

#Include/svn/httpd.conf <Location/svn/> DAV svn svnlistparentpath on SVNPARENTPATH/SVN Aut      Htype Basic authname "Subversion repositories" authuserfile/svn/passwd.http Authzsvnaccessfile/svn/authz Require valid-user </Location> redirectmatch ^ (SVN) $ $1/

G, creating/svn/passwd.http and/svn/authz

Touch/svn/passwd.http Touch/svn/authz

H. Restart Apache

Service httpd Restart

3, Installation Jsvnadmin

Download: https://code.google.com/archive/p/jsvnadmin/downloads

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/07/wKiom1jR2cCw14AEAACoMWKbEq0763.png "title=" 11111.png "alt=" Wkiom1jr2ccw14aeaacomwkbeq0763.png "/>

Jsvnadmin relies on DB, we use MySQL here, and all here also install MySQL (separate installation, separate from the database of the business system)

Install MySQL

A. To see if the MySQL database is already installed (if available, uninstall by RPM-E command or RPM-E--nodeps)

Rpm-qa | grep mysq

B, yum command installation

Yum install mysql-server MySQL mysql-devel service mysqld start

C, check whether the boot start

[Email protected] ~]# Chkconfig--list | grep mysqld mysqld 0:off1:off2:off3:off4:off5:off6:off

Above indicates no boot start, all need to set boot up

Chkconfig mysqld on

D, reset the root password

mysqladmin-u root password ' 123456 '

E. Log in to the database

Mysql-u root-p

F, MySQL authorized remote access (first login to MySQL with root)

GRANT all privileges on * * to ' root ' @ '% ' identified by ' 123456 ' with GRANT option; FLUSH privileges;

G, deploy Svnadmin to Tomcat

1), modify the configuration file

Vi/opt/svnadmin-tomcat/webapps/svnadmin/web-inf/jdbc.properties Db=mysql #MySQL Mysql.jdbc.driver=com.mysql.jdbc . Driver Mysql.jdbc.url=jdbc:mysql://127.0.0.1:3306/svnadmin?characterencoding=utf-8 MySQL.jdbc.username=root MySQL . jdbc.password=123456 #下面的删除

2), create the Svnadmin database, and import the corresponding data (UTF-8)

Perform Db/mysql5.sql and Db/lang/en.sql

3), start Tomcat

Access: Initial account password is admin/123456

http://192.168.175.9:9000/svnadmin/

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/8F/09/wKioL1jSCIfw0QilAAAbKmuXFc8272.png "title=" 11111.png "alt=" Wkiol1jscifw0qilaaabkmuxfc8272.png "/>

Note: Incorrect string value: ' \xe7\x99\xbb\xe5\xbd\x95 ' for column ' LBL ' error when testing whether Svnadmin is running properly

Workaround: Enter the Svnadmin database to execute the following statement

ALTER TABLE i18n MODIFY COLUMN lbl VARCHAR (255) CHARACTER SET UTF8 COLLATE utf8_unicode_ci not NULL;

4. using Jsvnadmin

A), create a library

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8F/09/wKioL1jSCuuB22kCAABcujcoWpM483.png "title=" 111. PNG "alt=" Wkiol1jscuub22kcaabcujcowpm483.png "/>

After creation, there will be two more files under/svn httpd.conf and liu_wx,httpd.conf are the same as the contents of the/etc/httpd/conf.d/subversion.conf configuration file.

The/svn/authz authorization file will read more:

[Aliases] [Groups] liu_wx_developer= liu_wx_manager= liu_wx_tester= [liu_wx:/] @liu_wx_manager =RW

To configure library directory permissions:

[Email protected] svn]# chown-r apache.apache liu_wx [[email protected] svn]# Chown-r 777 LIU_WX

(If you create a new library, you need to perform the above two-step authorization action on the newly created library directory)

Turn off SELinux (access control for Linux): Modify the/etc/selinux/config file

#将SELINUX的值改为disabled selinux=disabled

Restart reboot

This article is from "I Love Big gold" blog, please be sure to keep this source http://1754966750.blog.51cto.com/7455444/1909192

Linux Learning: Continuous Integration Chapter--SVN version management system installation and use-02

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.