Linux Installation Deployment Apache+subversion+jsvnadmin
1. Apache Web server (note not tomcat)
2. Subversion version control (SVN Server)
3. Jsvnadmin Project (SVN Control Console)
Over three integrations to form a platform for SVN version management
1. Before installing, update Linux system
# Yum Update
Need to enter Y to confirm
2, Update Complete restart
# reboot
3. Installing Apache
# yum Install httpd httpd-devel
You need to enter Y confirmation during installation
4. Start the server
# service httpd start
5, Apache Set Boot
# Chkconfig httpd on
6. Modify Apache Service port
# vi/etc/httpd/conf/httpd.conf
Find servername localhost:80
7. Open port in firewall :
# Vi/etc/sysconfig/iptables
-a input-m state--state new-m tcp-p tcp--dport 80-j ACCEPT
# Service Iptables Restart
8. Access Apache Server :
192.168.226.130
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/8C/6F/wKiom1hsbUviRVOMAAIBAOoJFKg740.png-wh_500x0-wm_3 -wmp_4-s_2884520749.png "title=" 1.png "alt=" wkiom1hsbuvirvomaaibaoojfkg740.png-wh_50 "/>
9. Install SVN server
# Yum Install mod_dav_svn Subversion
MOD_DAV_SVN module must be installed
10. Restart Apache after installing SVN
# Service httpd Restart
11. Check if the SVN module is installed in the test
#ls/etc/httpd/modules/| grep svn mod_authz_svn.so
Mod_dav_svn.so
#svn--version
12. Create SVN Library home directory (multi-library mode, One profile to manage multiple libraries)
#mkdir/svn/
#cd/etc/httpd/conf.d
#ls
13. A subversion.conf configuration file (generated When installing the MOD_DAV_SVN Module) can be seen at this time
# VI Subversion.conf
Add the following content:
#Include/svn/httpd.conf <location/svn/>dav svnsvnlistparentpath onsvnparentpath/svnauthtype BasicAuthName " Subversion repositories "authuserfile/svn/passwd.httpauthzsvnaccessfile/svn/authzrequire valid-user</Location >redirectmatch ^ (/svn) $ $1/
14. Create/svn/passwd.http And/svn/authz
#touch/svn/passwd.http
#touch/svn/authz
15. Restart Apache
# Service httpd Restart
16. Install a mysql/server/oracle database independently
Reference Connection: http://alex233.blog.51cto.com/8904951/1886535
17. Deploy a Tomcat
Reference connection:http://alex233.blog.51cto.com/8904951/1886469
18. Download Svnadmin
Connection: https://pan.baidu.com/s/1bpiR5O7
Download Svnadmin-3.0.5.zip to unzip it
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/8C/71/wKiom1hsnhWzvPMzAABLy7k_KDA831.png-wh_500x0-wm_3 -wmp_4-s_4152615200.png "title=" 3.png "alt=" wkiom1hsnhwzvpmzaably7k_kda831.png-wh_50 "/>
First execute the database script
Create a Svnadmin database and import the appropriate data (UTF-8)
Perform Db/mysql5.sql and Db/lang/en.sql
19. Deploy Svnadmin
First clear the initial files in Tomcat
# cd/usr/local/tomcat/webapps/
# RM-RF *
Then upload the Svnadmin.war to Linux
The Upload path is:/usr/local/tomcat/webapps/
Decompression Svnadmin.war
# Unzip svnadmin.war-d admin
Modify the connection database file Jdbc.properties
# vi/usr/local/tomcat/webapps/svnadmin/web-inf/jdbc.properties
The content of the modification is: (other superfluous Delete)
db=mysql#mysqlmysql.jdbc.driver=com.mysql.jdbc.drivermysql.jdbc.url=jdbc:mysql://127.0.0.1:3306/svnadmin? characterencoding=utf-8mysql.jdbc.username=rootmysql.jdbc.password=123456
20. Modify the Tomcat boot port number to avoid conflicts
# Vi/usr/local/tomcat/conf/server.xml
The contents of the amendment are as Follows:
<server port= "8006" shutdown= "shutdown" > <connector port= "8888" protocol= "http/1.1" connectiontimeout= " 20000 "redirectport=" 8443 "uriencoding=" UTF-8 "/>
modifying firewall ports
# Vi/etc/sysconfig/iptables
Add the following article:
-a input-m state--state new-m tcp-p tcp--dport 8888-j ACCEPT
Restart the firewall for the port configuration to take effect
# Service Iptables Restart
21. Start Tomcat
#/usr/local/tomcat/bin/startup.sh
After successful startup, visit ...
http://192.168.226.130:8888/svnadmin/
The first time you need to set up an administrator account and password
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/8C/6E/wKioL1hspEfCGo_vAAA6otQqQWg920.png-wh_500x0-wm_3 -wmp_4-s_2865889067.png "title=" 4.png "alt=" wkiol1hspefcgo_vaaa6otqqqwg920.png-wh_50 "/>
Direct input:
Account: Admin
Password: 123456
So your account password is the ones that
22. Create a library
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/8C/71/wKiom1hspSvRU4bpAAB8LFTpYrI515.png-wh_500x0-wm_3 -wmp_4-s_2724069834.png "title=" 5.png "alt=" wkiom1hspsvru4bpaab8lftpyri515.png-wh_50 "/>
Project_name= the name of your project
After the creation is complete:
Project_name's SVN Library directory will be created under The/svn/directory
The/svn/authz authorization file will read more:
[aliases]
[groups]
Project_name_developer=
Project_name_manager=admin
Project_name_tester=
[project_name:/]
@project_name_manager =RW
23. Set directory Permissions (important)
Project_Name = name of your project
# CD/SVN
# chown-r Apache.apache Project_Name
# Chomd-r 777 Project_Name
( each time a new library is created, The new library is granted the above two-step authorization action )
24. Turn off SELinux (access control for Linux)
Modify The/etc/selinux/config File
# Vi/etc/selinux/config
Change selinux=enforcing to selinux=disabled
Restarting the machine
# reboot
This article is from the "green years" blog, Be sure to keep this source http://alex233.blog.51cto.com/8904951/1888857
Linux Installation Deployment Apache+subversion+jsvnadmin