Ubuntu web environment (JSP + MySQL + Tomcat)

Source: Internet
Author: User

1. Install MySQL

Ø sudo apt-Get install mysql-server mysql-Client

Check whether MySQL is installed


Ø show variables like 'character % 'to view the character set used by the database

Log on to the mysql-u root-P database.

2. Download and install JDK

Oracle official website download http://www.oracle.com/technetwork/java/javase/downloads/index.html

Unzip the JDK and place it in the Java folder.

Set the environment variable sudo gedit/etc/environment

Sudo gedit/etc/profile

Check (Note: it is not the openjdk provided by UBUNTU)


3. Install eclipse

Oracle official website download J2EE version http://www.oracle.com/technetwork/java/javase/downloads/index.html

Unzip the package and run it directly.


4. install Tomcat

Apache official website to download the corresponding version of http://tomcat.apache.org/

Place the downloaded file in the Java folder, decompress it, and name it tomcat7.


Ø configuration parameter: sudo gedit Catalina. Sh

Enable Tomcat 7 sudo./starup. Sh (disable Tomcat 7 sudo./shutdown. Sh)

Enter http: // localhost: 8080 in Google Chrome

Configure Tomcat windows -- preferences -- servers -- runtime -- add in eclipse

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.