CentOS 7 installation CSVN

I. Introduction to the environment

1.centos 7
2. Java1.8.0_211

Two. Java environment configuration

1. First find the jdk package and the csvn package on the Internet

2. First check if you have these two packages with ls

3.[[email protected] soft]# tar xf jdk-8u211-linux-x64.tar.gz -C /usr/local/

4.< /strong>[[email protected] soft]# cd /usr/local/

5.[[email protected] local]# mv jdk1.8.0_211/ java/< /p>

6.[[email protected] local]# vim /etc/profile # Add three lines at the end (java environment variables);
export JAVA_HOME=/usr/local/ java
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
centos 7 installation csvn

7.[[emailprotected] local]# source /etc /profile

8.[[email protected] local]# java -version # View java version;
centos 7 install csvn

3. Create CSVN user

em>

[[emailprotected] ~]# useradd -m csvn

[[emailprotected] ~]# passwd csvn

4. Deploy CSVN

1.[[emailprotected] soft ]# mkdir /data # Create csvn home directory

2.[[email protected] soft]# tar xf CollabNetSubversionEdge-4.0.11_linux-x86_64.tar.gz -C / data/ # Unzip the csvn source package

3.[[email protected] soft]# cd /data/

4.[[email protected] data]# ls
csvn
centos 7 install csvn

5.[[emailprotected] data]# chown -R csvn.csvn csvn

6.[[emailprotected] data]# vim /etc/ sudoers

98 root ALL=(ALL) ALL
99 csvn ALL=(ALL) ALL
centos 7 install csvn
7.[[emailprotected] data]# su csvn

8.[[emailprotected] ~] $ sudo -E /data/csvn/bin/csvn install

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
# 1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for csvn:
Detected RHEL or Fedora:
Installing the CSVN Console daemon..
Setting RUN_AS_USER to:’csvn’. Please edit’../data/conf/csvn.conf’ if this needs to be adjusted
Setting JAVA_HOME to:’/ usr/local/java’. Please edit’../data/conf/csvn.conf’ if this needs to be adjusted.
centos 7 install csvn

View the generated file
[[email protected] data]$ vim csvn/data/conf/csvn. conf (under /data)
9 RUN_AS_USER=csvn
46 JAVA_REQUIRED=true
47 JAVA_REQUIRED_VERSION=1.6
4 8 JAVA_HOME=/usr/local/java

5. Start CSVN

csvn/ bin/csvn start

centos 7 install csvn

< strong> Six.Enter http://IP address plus port number and csvn on the browser

The default user name and password are both admin

 centos 7 install csvn

Click Start

Click Repository

centos 7 install csvn

click to create (start from any name)< /p>

centos 7 install csvn

Just tick a file, then Click Download
centos 7 install csvn

click create again

Click Browse
to upload and download

centos 7 install csvncentos 7 install csvn

Leave a Comment

Your email address will not be published.