centos6.5 Environment SVN Admin Setup

Source: Internet
Author: User
Tags gz file

SVN admin setup under centos6.5 environment
SVN protocol Instance

First, install the JDK
There are two ways to install the JDK: one is to decompress the tar.gz configuration installation and one is the RPM installation.
A, tar.gz Package installation method
1. First look at the OPENJDK installation package
#rpm-qa |grep Java
Tzdata-java-2013b-1.el6.noarch
Java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64
Java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_64
2. Check the OPENJDK version
#java-version
Java Version "1.7.0_19"
OpenJDK Runtime Environment (RHEL-2.3.9.1.EL6_4-X86_64)
OpenJDK 64-bit Server VM (build 23.7-b01, Mixed mode)
3. Uninstalling OPENJDK
Log in to the terminal with the root user
#rpm-E--nodeps java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_64
#rpm-E--nodeps java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64
#rpm-E--nodeps tzdata-java-2013b-1.el6.noarch
4. Installing jdk-7u71-linux-x64.tar.gz
Download
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
#tar –ZXVF jdk-7u71-linux-x64.tar.gz
#mkdir/usr/java
#mv jdk1.7.0_71//usr/java/
To configure environment variables:
#vim/etc/profile
At the end of the file, add
Java_home=/usr/local/java/jdk1.7.0_71
Jre_home=/usr/local/java/jdk1.7.0_71/jre
Path= $PATH: $JAVA _home/bin: $JRE _home/bin
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib
Export Java_home jre_home PATH CLASSPATH

B, RPM installation method
1. First look at the OPENJDK installation package
#rpm-qa |grep Java
Tzdata-java-2013b-1.el6.noarch
Java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64
Java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_64
2. Check the OPENJDK version
#java-version
Java Version "1.7.0_19"
OpenJDK Runtime Environment (RHEL-2.3.9.1.EL6_4-X86_64)
OpenJDK 64-bit Server VM (build 23.7-b01, Mixed mode)
3. Uninstalling OPENJDK
Log in to the terminal with the root user
#rpm-E--nodeps java-1.7.0-openjdk-1.7.0.19-2.3.9.1.el6_4.x86_64
#rpm-E--nodeps java-1.6.0-openjdk-1.6.0.0-1.61.1.11.11.el6_4.x86_64
#rpm-E--nodeps tzdata-java-2013b-1.el6.noarch
4. Installing jdk-8-linux-x64.rpm
Download JDK
#cd the directory where/jdk1.7
#rpm-IVH jdk-8-linux-x64.rpm
Preparing ... ########################################### [100%]
1:JDK ########################################### [100%]
Unpacking JAR files ...
Rt.jar ...
Jsse.jar ...
Charsets.jar ...
Tools.jar ...
Localedata.jar ...
Jfxrt.jar ...
5. Configure Environment variables
#vi/etc/profile
At the end, add the following:
java_home=/usr/local/java/jdk1.8.0
Jre_home=/usr/local/java/jdk1.8.0/jre
Path= $PATH: $JAVA _home/bin: $JRE _home/bin
Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib
Export Java_home jre_home PATH CLASSPATH
Make environment variables effective immediately
#source/etc/profile
6. Test whether the installation was successful
Enter Java,java-version,javac in turn to see the output information, such as
#java-version
Java Version "1.8.0"
Java (TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot (TM) 64-bit Server VM (build 25.0-b70, Mixed mode)
[Email protected] java]#
============================================================================================================
Ii. installation of Tomcat
1. Download
Http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
2. Upload the apache-tomcat-7.0.29.tar.gz file to the/usr/local to perform the following actions:
#cd/usr/local
#tar-zxv-f apache-tomcat-7.0.57.tar.gz
#cd apache-tomcat-7.0.57/bin/
#./startup.sh Start Tomcat
============================================================================================================
Third, install MySQL database
1. Unzip the binary installation package
#tar-ZXVF mysql-5.6.22-linux-glibc2.5-x86_64.tar.gz
#mv mysql-5.6.22-linux-glibc2.5-x86_64/usr/local/
#mv/usr/local/mysql-5.6.22-linux-glibc2.5-x86_64/usr/local/mysql
2. Create a MySQL user
#useradd-M Mysql-s/sbin/nologin
3. Change Directory Owner
#chown-R mysql:mysql/usr/local/mysql*
4. Performing the installation
#cd/usr/local/mysql
#./scripts/mysql_install_db--basedir=/usr/local/mysql--datadir=/data/mysqldata--user=mysql
#cp support-files/my-default.cnf/etc/my.cnf
#cp Support-files/mysql.server/etc/init.d/mysql.server
5. Start
#/etc/init.d/mysql.server start
6. Login
Create a password for the root user
#/usr/local/mysql/bin/mysqladmin-u root Password "123456"
#/usr/local/mysql/bin/mysql-u mysql-p
#grant all on * * to ' root ' @ '% ' identified by ' 123456 ';
Iv. building a library, landing
1. Create a library named Svnadmin in the database.
2. Use the Client tool (NAVICAT) to connect to the database, and locate the corresponding Database build table script in the release package DB directory Mysql5.sql
Execute the SQL inside and build the Svnadmin table structure.
3. Importing multiple languages
The system defaults to Simplified Chinese, and scripts for other languages are available under the release package directory Db/lang. For example, import the English version,
Execute db/lang/en.sql.
4. Running
Unzip the release package, locate the Svnadmin.war file, open it with compression software (e.g. winrar), modify the web-inf/jdbc.properties inside
Database connection information.
For example, your database is MySQL, the server IP is x.x.x.x, and the configuration information is modified as follows:
#指定当前连接数据库
Db=mysql
#MySQL
Mysql.jdbc.driver=com.mysql.jdbc.driver
Mysql.jdbc.url=jdbc:mysql://x.x.x.x:3306/svnadmin?characterencoding=utf-8
Mysql.jdbc.username=root
mysql.jdbc.password=123456
After modifying the configuration file, copy the Svnadmin.war to the%tomcat%/webapps directory and start Tomcat, for example, your tomcat port is
8080, enter http://x.x.x.x:8080/svnadmin in the browser, the login page appears. Indicates that your installation was successful.
Login Page
For the first time use, enter the account number and password for the Super administrator.
User management: Click on the top right menu "users", enter the user name information, click "Submit", you can create a user.
Project Management: Enter basic information for the project, as below,
Project: cloudcity Type: SVN
Path:/home/svn/cloudcity
Url:svn://x.x.x.x/cloudcity
Description: Cloudcity

This article from "Crazy Blog" blog, reproduced please contact the author!

centos6.5 Environment SVN Admin Setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.