1.JAVA Environment Installation:
sudo apt-get installsun-java6-jre sun-java6-jdk sun-java6-demo sun-java6-docsun-java6-source sun-java6-plugin Ia32-sun-java6-plugin SUN-JAVA6-FONTSLIBMYODBC Odbc-postgresql Libct1
This installs the Java environment, including the instance and API documentation, the need to note that the API documents need to be downloaded separately, as prompted to put the API documents in the/tmp directory, you need to remind that in the installation process will have a certain, press the TAB key, select OK
This step is more critical, the settings are not good, there will be abnormal connection tomcat
The following are the key steps:
sudo gedit/etc/profile
Java_home=/usr/lib/jvm/java-6-sun
Export Java_home
To set the default Java program
sudo update-alternatives--config java
Follow the prompts to enter the corresponding option, specified as JDK 6
sudo gedit/etc/environment
Add the following two lines to it:
Classpath=/usr/lib/jvm/java-6-sun/lib
Java_home=/usr/lib/jvm/java-6-sun
Set As system default:
sudo update-java-alternatives-s Java-6-sun
To edit a JVM configuration file:
sudo GEDIT/ETC/JVM
Add at top of file
/usr/lib/jvm/java-6-sun
sudo gedit ~/.BASHRC
At the end of the file, add the following two lines
Export Java_home=/usr/lib/jvm/java-6-sun
Export path= $PATH: $JAVA _home/bin
Save exit
This sets the newly installed JDK to the system default Java environment
2.eclipse Installation:
sudo atp-get install eclipse
Set Eclipse
sudo vim/etc/eclipse/java_home
Add at top of file
/usr/lib/jvm/java-6-sun
So eclipse can find the JRE environment.
At this point you can overwrite eclipse with Lomboz (installed in/usr/lib/eclipse), I was prepared before the installation, so it is directly covered. I'm used to the eclipse interface, and I've covered lomboz with eclipse.
Chinese to find their own, this information a lot, I will not repeat (on the Eclipse official website has Chinese language pack)
3.tomcat Installation:
Download Tomcat, unzip, put it into/usr/share/tomcat5.5, I'll overwrite the original package
Also download the Tomcatplugin plugin, unzip it into Eclipse's plugin folder, and see the kitten in Eclipse.
To configure environment variables:
sudo gedit/etc/profile
Input
catalina_home=/usr/share/tomcat5.5
Export Catalina_home
Reboot
Run Tomcat
First enter http://localhost:8080/before running
See if Tomcat's started.
Go under Tomcat's directory
sudo./catalina.sh Run
Open the browser in the Address bar enter: http://localhost:8080/
It's OK to see the kitten.
Turn off Tomcat
Eclipse+tomcat
Open the Eclipse window, preferences-tomcat-select tomcat5.x to set up the directory for Tomcat, OK you can try it
4.mysql Installation:
To install MySQL, you can run the following commands at the terminal prompt:
sudo apt-get install mysql-server mysql-client
Once the installation is complete, the MySQL server should start automatically. You can check to see if the MySQL server is running by running the following command at the terminal prompt:
sudo netstat-tap | grep MySQL
When you run the command, you can see a line similar to the following:
TCP 0 0 localhost.localdomain:mysql *:* LISTEN-
If the server does not function correctly, you can start it by using the following command:
Sudo/etc/init.d/mysql restart
Configuring the Administrator password for MySQL
This step can not be done, when installing MySQL prompts to set the password is already set
sudo mysqladmin-u root password newpassword
Install the MySQL Administrator graphical interface
Search MySQL under the new software to find
Open NEW: System-System Management-new package Manager
Mysql-admin package, choose to install it after the application/programming can be run.