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
7.[[emailprotected] local]# source /etc /profile
8.[[email protected] local]# java -version # View java version;
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
p>
5.[[emailprotected] data]# chown -R csvn.csvn csvn
6.[[emailprotected] data]# vim /etc/ sudoers
98 root ALL=(ALL) ALL
99 csvn ALL=(ALL) ALL
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.
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
< strong> Six.Enter http://IP address plus port number and csvn on the browser
The default user name and password are both admin
Click Start
Click Repository
click to create (start from any name)< /p>
Just tick a file, then Click Download
click create again
Click Browse
to upload and download
p>