Deploy CSVN server in CentOS6.7
Requirement: Build an intranet svn server with a web management interface.
I read some blogs on the Internet and found the csvn version control tool, which I personally feel very useful. So I sorted out the setup steps for your reference.
Components required by the server: installation can be minimized (for test), and components must be: Installation
(Click here to download the two software packages above)
Step 1: Upload the two software packages to the/opt directory of the server. Step 2: export mvjdk1.8.0 _ 91 // usr/local/vi/etc/profile #### Add the following three lines: exportJAVA_HOME =/usr/local/jdk1.8.0 _ 91 exportPATH = $ JAVA_HOME/bin: $ PATHexportCLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jarsource/etc/profilejava-version # check that the java version is 1.8step3: javasmkdir/applicationmvcsvn // application/useraddcsvnpasswd csvnchown-Rcsvn: csvn/application/vim/etc/sudoers #### Add the following line so that csvn can use sudocsvnALL = (ALL) ALLln-s/application/csvn/bin/csvn/etc/csvnln-s/application/csvn-httpd/etc/csvn-httpd start the service: csvn-httpdservice csvn startservice csvn-httpd start http://ip:3343/csvn By default, the user name and password are admin. Appendix 1: http://www.collab.net/downloads/subversion Csvn official Appendix 2: svn common operation commands svn co http://192.168.188.216:18080/svn/scripts Scripts -- username = admin # example of checkout code from svn: execute this command cd/svntestsvn co on a server http://192.168.188.216:18080/svn/scripts Scripts -- username = admin # The first time you need to enter the password, generate the/scripts directory cd/scriptstouch a ### create a file asvn add a ### add asvn to svn ci-m "add a" ### submit to svnsvn del a ### Delete asvn ci-m "del a" ### submit to svn