Complete J2EE software development project environment under Ubuntu10.10: process, quality and Project Management

Source: Internet
Author: User
Tags redmine sonatype
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:

  1. JDK java-6-sun-jdk http://www.Oracle.com/technetwork/java/index.html
  2. Mysql http://dev.mysql.com/
  3. Apache2 http://httpd.apache.org/
  4. Subversion http://subversion.tigris.org/
  5. Maven apache-maven3 http://maven.apache.org/
  6. Nexus sonatype-nexus-oss http://nexus.sonatype.org/
  7. Sonar http://www.sonarsource.org/
  8. Hudson http://hudson-ci.org/
  9. Red mine http://www.redmine.org/
  10. Tomcat apache-tomcat-7 http://tomcat.apache.org/
  11. Ant apache-ant-1.8 http://ant.apache.org/
  12. # Cargo http://cargo.codehaus.org/
  13. OpenSSL
  14. OpenSSH

Pre-Configuration

  1. 1) if you are installing Ubuntu server, select LMAP during system installation.
  2. 2) We recommend that you set the IP address to a fixed IP address.
  3. 3) We recommend that you download the packages and plug-ins that need to be manually installed in advance.
1. JDK
  1. $ Sudo apt-get install java-6-sun-jdk
Install to/usr/lib/jvm/java-6-sun-xxx by default (Version)
Verify jdk:
  1. $ Java-version
2. Mysql
  1. $ 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
  1. $ Mysql-u root
  2. Mysql>Set password for root @Localhost=PASSWORD('Secret ');
2) utf8 Character Set
  1. $ Sudo vi/etc/mysql/my. cnf
  2. [Mysqld]
  3. # Set the default character set.
  4. Default-character-set=UTF8
  5. [Client]
  6. # Set the default character set.
  7. Default-character-set=UTF8
  8. Mysql>Show variables like "% colla % ";
  9. Mysql>Show variables like "% char % ";
3) Remote Access
  1. $ Sudo vi/etc/mysql/my. cnf
  2. [Mysqld]
  3. #Bind-address=127. 0.0.1
  4. Mysql>Grant all privileges on *. * TO newuser@192.168.1.111 identified by 'secret'; // Replace the IP address with '%' TO indicate any address
  5. Mysql>Flush privileges;
4) case insensitive
  1. $ Sudo vi/etc/mysql/my. cnf
  2. [Mysqld]
  3. Lower_case_table_names=1
3. Apache2 (Integration with other tools in the future)
  1. $ 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
  1. $ Sudo apt-get install subversion
2) create a database
  1. $ Sudo mkdir/var/svn & cd/var/svn
  2. $ 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.
  1. [General]
  2. Anon-access=Read
  3. Auth-access=Write
  4. Password-db=Passwd
  5. AuthzAuthz-db= Authz
  6. Realm=IALSSVN Repository
Configure passwd
  1. [Users]
  2. RedmineRedmine= Redmine
Configure authz
  1. [Groups]
  2. Dev=Redmine
  3. [Repos:/]
  4. @Dev=Rw
4) Start svnserve
  1. $ Sudo svnserve-d-r/var/svn
5) Add the svn service to self-start
  1. $ Cd/etc/rc2.d & sudo vi S88svnserve
  1. #! /Bin/sh
  2. Svnserve-d-r/var/svn
  3. $ Sudo chmod + x S88svnserve
6) import the project
  1. $ Sudo mkdir-p/tmp/ials/trunk tags branches
  2. $ Sudo svn import -- username USERNAME-m "initial import"/tmp/ials/svn: // localhost/repos/ials
7) the following error is displayed during submission:
  1. 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:
  1. $ Sudo chown www-data: www-data/var/svn/repos/db/rep-cache.db

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.