The tool involved in this article is as follows: JDKjava-6-sun-jdkhttp: // www.Oracle.com/technetwork/java/index.htmlMysql &
The tools involved in this article are as follows:
- JDK java-6-sun-jdk http://www.Oracle.com/technetwork/java/index.html
- Mysql http://dev.mysql.com/
- Apache2 http://httpd.apache.org/
- Subversion http://subversion.tigris.org/
- Maven apache-maven3 http://maven.apache.org/
- Nexus sonatype-nexus-oss http://nexus.sonatype.org/
- Sonar http://www.sonarsource.org/
- Hudson http://hudson-ci.org/
- Red mine http://www.redmine.org/
- Tomcat apache-tomcat-7 http://tomcat.apache.org/
- Ant apache-ant-1.8 http://ant.apache.org/
- # Cargo http://cargo.codehaus.org/
- OpenSSL
- OpenSSH
Pre-Configuration
- 1) if you are installing Ubuntu server, select LMAP during system installation.
- 2) We recommend that you set the IP address to a fixed IP address.
- 3) We recommend that you download the packages and plug-ins that need to be manually installed in advance.
1. JDK
- $ Sudo apt-get install java-6-sun-jdk
Install to/usr/lib/jvm/java-6-sun-xxx by default (Version)
Verify jdk:
- $ Java-version
2. Mysql
- $ Sudo apt-get install mysql-server
You can also install related management tools, such as gui-tools, cluster-server, and proxy.
1) set the mysql administrator password
- $ Mysql-u root
- Mysql>Set password for root @Localhost=PASSWORD('Secret ');
2) utf8 Character Set
- $ Sudo vi/etc/mysql/my. cnf
- [Mysqld]
- # Set the default character set.
- Default-character-set=UTF8
- [Client]
- # Set the default character set.
- Default-character-set=UTF8
- Mysql>Show variables like "% colla % ";
- Mysql>Show variables like "% char % ";
3) Remote Access
- $ Sudo vi/etc/mysql/my. cnf
- [Mysqld]
- #Bind-address=127. 0.0.1
- Mysql>Grant all privileges on *. * TO newuser@192.168.1.111 identified by 'secret'; // Replace the IP address with '%' TO indicate any address
- Mysql>Flush privileges;
4) case insensitive
- $ Sudo vi/etc/mysql/my. cnf
- [Mysqld]
- Lower_case_table_names=1
3. Apache2 (Integration with other tools in the future)
- $ Sudo apt-get install apache2
Default configuration file/etc/apache2/apache2.conf
Default Service Startup file/etc/init. d/apache2
Install Google Pagespeed mod
4. Subversion
1) install directly from the source
- $ Sudo apt-get install subversion
2) create a database
- $ Sudo mkdir/var/svn & cd/var/svn
- $ Sudo svnadmin create repos & cd repos/conf
3) Configure permissions
Configure svnserve. conf. Note that no space is left at the beginning of each line.
- [General]
- Anon-access=Read
- Auth-access=Write
- Password-db=Passwd
- AuthzAuthz-db= Authz
- Realm=IALSSVN Repository
Configure passwd
- [Users]
- RedmineRedmine= Redmine
Configure authz
- [Groups]
- Dev=Redmine
- [Repos:/]
- @Dev=Rw
4) Start svnserve
- $ Sudo svnserve-d-r/var/svn
5) Add the svn service to self-start
- $ Cd/etc/rc2.d & sudo vi S88svnserve
- #! /Bin/sh
- Svnserve-d-r/var/svn
- $ Sudo chmod + x S88svnserve
6) import the project
- $ Sudo mkdir-p/tmp/ials/trunk tags branches
- $ Sudo svn import -- username USERNAME-m "initial import"/tmp/ials/svn: // localhost/repos/ials
7) the following error is displayed during submission:
- Attempt to write a readonly database
It is because/var/svn/repos/db directory in the rep-cache.db, permissions are not apache write permissions, modify permissions to apache write can be:
- $ Sudo chown www-data: www-data/var/svn/repos/db/rep-cache.db