LINXU the installation configuration CSVN

CSVN installation configuration
First, download the JDK and CSVN source package. Download after decompression.
DJK 1. Extract the / usr / local / src (path can choose)
#tar -zxvf jdk-8u211-linux-x64.tar.gz -C /usr/local/src
2. The configuration environment
#vim /etc/profile
to the last row

export JAVA_HOME=/usr/local/src/jdk1.8.0_211 
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

Pay attention to modify their own path and version

LINXU the installation configuration CSVN

  1. The configuration file to take effect
    #source /etc/profile
    4. View the Java version.
    #java --version
    LINXU the installation configuration CSVN

Note: If, after input configuration file, the version number is not the version you download uninstall the system comes with the JDK.
The first step: rpm query java installation package
#rpm -qa | grep java
Step two: Delete installation package
#rpm -e --nodeps 接文件名
LINXU the installation configuration CSVN
and then reread the configuration file after
#source /etc/profile

Second, start the installation CSVN source packages installed to / usr / local / src
1. Unzip the file
#tar -zf CollabNetSubversionEdge-5.1.4_linux-x86_64.tar.gz
2. Create a user CSVN, and gave him permission, run the following command.
1). #groupadd svn# Of svn user group,
2). #useradd -g svn svnuseR & lt create user # svnuser, and to the svn group
. 3). #echo 123456|passwd --stdin svnuseR & lt svnuser set a password to the user #
4). #chown -R svnuser:svn /usr/local/src/csvn/data# Set csvn directory and its subdirectories genus group svn
. 5) . #chmod +w /etc/sudoers# set csvn directory permissions to read and write execution group
6). #chown -R svnuser:svn /usr/local/srccsvn/data# set the owner of the data directory is svnuser, is a group svn
7). # set sudu permission
#vim /etc/sudoers
to add a line in there
#svnsuer ALL=(ALL) ALL
LINXU the installation configuration CSVN
this time will not save so give him an error plus writable permissions
#chmod -w /etc/sudoers
3. give him install #/usr/local/src/csvn/bin/csvn-httpd install
Third, start csvn
#cd /usr/local/usr/csvn/bin
#./csvn start
LINXU the installation configuration CSVN

Httpd last entered in the browser: //192.168.43.96: 3343 / csvn
enter the account password
LINXU the installation configuration CSVN
to access success
LINXU the installation configuration CSVN

Guess you like

Origin blog.51cto.com/14375807/2426951