linux under java tomcat mysql eclipse installation

Liux under the latest tomcat5.5.25 + mysql5.0.45 + jdk1.0.5.13 + eclipse3.3.1 + myeclipse6.0 one configuration, install the required packages:
1.JDK 5.0 Update 13 (jdk-1_5_0_13-linux-i586-rpm.bin)
Download Address: http://sdlc-esd.sun.com/ESD36/JSCDL/jdk/1.5.0_13/jdk-1_5_0_13-linux-i586-rpm.bin?AuthParam=1194257300_8b625a03d9812f53c3e95350a3fa1b04 & TUrl = an1npDpbKod7kSYrROhENTonIec2W0D1Lc4nXz + pGFFranixdCdgxDTPbW4 = & TicketId = dVN6OgZLN +4 y / w == & GroupName = SDLC & BHost = sdlc1g.sun.com & FilePath = / ESD36/JSCDL/jdk/1.5.0_13/jdk-1_5_0_13-linux-i586-rpm.bin & File = jdk - 1_5_0_13-linux-i586-rpm.bin (probably expired)
You can download by following these steps:
http://java.sun.com/javase/downloads/index_jdk5.jsp
Find -> JDK 5.0 Update 13 Click the Download icon on the right side,
Access to the download page click the Accept License Agreement | Review License Agreement
And find the Linux Platform - Java Development Kit 5.0 Update 13
Click the Linux RPM in self-extracting file for download
2.apache-tomcat-5.5.25
Download Address: http://apache.mirror.phpchina.com/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.tar.gz (Probably expired)
You can download by following these steps:
http://tomcat.apache.org/download-55.cgi
Binary Distributions found the following Core items click tar.gz (pgp, md5) to download the tar.gz
3.mysql5.0.45
Download Address: http://dev.mysql.com/downloads/mysql/5.0.html # linux-static-x86-32bit-rpms
See the Linux x86 generic RPM (statically linked against glibc 2.2.5) downloads download
MySQL-client-5.0.45-0.i386.rpm
MySQL-devel-5.0.45-0.i386.rpm
MySQL-server-5.0.45-0.i386.rpm
MySQL-shared-5.0.45-0.i386.rpm
4.eclipse-SDK-3.3.1.1-linux-gtk.tar.gz
Download Address: http://eclipse.cdpa.nsysu.edu.tw/downloads/dro ps/R-3.3.1.1-200710231652/eclipse-SDK-3.3.1.1-linux-gtk.tar.gz (probably expired)
You can download by following these steps:
http://download.eclipse.org/eclipse/downloads/dro ps/R-3.3.1.1-200710231652/index.php
Download a list of the top of Eclipse SDK to find Linux (x86/GTK 2) (Supported Versions) eclipse-SDK-3.3.1.1-linux-gtk.tar.gz 138 MB eclipse-SDK-3.3.1.1-linux-gtk.tar.gz (md5) (sha1)
Click eclipse-SDK-3.3.1.1-linux-gtk.tar.gz download
5.myeclipse6.0
Download Address: http://downloads.myeclipseide.com/downloads/products/eworkbench/6.0.1GA/MyEclipse_6_0_1GA_E3_3_1_Installer.bin (Probably expired)
You can download by following these steps:
http://www.myeclipseide.com/module-htmlpages-display-pid-4.html
Select Accept License Agreement | Review License Agreement then click the download button 6.0 then find 2. MyEclipse Enterprise Workbench 6.0.1 GA for RedHat Enterprise Linux 4
Click on the second plug-in download Note: The above package on the download after you are familiar with in order to facilitate the management of the installation directory.
Two, the installation
1. To install JDK 5.0 Update 13
# chmod + x jdk-1_5_0_13-linux-i586-rpm.bin
# ./jdk-1_5_0_13-linux-i586-rpm.bin
# yes

Note: chmod + x jdk-1_5_0_13-linux-i586-rpm.bin Add execute permission
./jdk-1_5_0_13-linux-i586-rpm.bin implementation jdk-1_5_0_13-linux-i586-rpm.bin and generate jdk-1_5_0_13-linux-i586-rpm
yes install the express consent
jdk default installation directory is / usr/java/jdk1.5.0_13
Installed for him set up a link directory to save the length of
# ln-s / usr/java/jdk1.5.0_13 / usr / jdk
Finally
# Vi / etc / profile
Add the following content (Note: Direct copy the following would be a surplus of some characters, it is necessary to use at X under nEdit Edit)
JAVA_HOME = / usr / jdk
CLASSPATH = $ JAVA_HOME / lib /
PATH = $ PATH: $ JAVA_HOME / bin
export PATH JAVA_HOME CLASSPATH
Test
# Source / etc / profile
# Java-version
Occur:
java version "1.5.0_13"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05)
Java HotSpot (TM) Client VM (build 1.5.0_13-b05, mixed mode, sharing)
Successful installation
2. Install apache-tomcat-5.5.25
# tar-zxvf apache-tomcat-5.5.25.tar.gz-C / usr / local (extract to / usr / local)
# ln-s / usr/local/apache-tomcat-5.5.25 / usr / local / tomcat
Start tomcat
# / usr / local / tomcat / bin / startup.sh
Test http://127.0.0.1:8080
Successful kitten that appears to attach to the system startup
# vi / etc / rc.d / rc.local
# / usr / local / tomcat / bin / startup.sh (added to end of file)
3. Mysql5.0.45 installation
First of all, use the command: rpm-qa | grep mysql to see if MySQL is installed and its version, will install the mysql delete if you are using a linux version contains please selinux and has started to turn off / etc / selinux / config in SELinux = enforcing change SELINUX = disabled
# rpm-ivh MySQL-client-5.0.45-0.i386.rpm
# rpm-ivh MySQL-devel-5.0.45-0.i386.rpm
# rpm-ivh MySQL-server-5.0.45-0.i386.rpm
# rpm-ivh MySQL-shared-5.0.45-0.i386.rpm
#. / Mysqladmin-u root password 123456
# mysql-u root-p123456 * log mysql
# SET PASSWORD FOR 'root' @'192 .168.1.17 '= OLD_PASSWORD ('123456'); (this step can be omitted)
Database path: / var / lib / mysql /
Start command: / etc / init.d / mysql strat
Stop command: / usr / bin / mysqladin-u root-p shutdown
4. Installed eclipse-SDK-3.3.1.1-linux-gtk.tar.gz
# tar-zxvf eclipse-SDK-3.3.1.1-linux-gtk.tar.gz-C / usr / local (extract to / usr / local directory and generate / usr / local / eclipse directory)
#. / usr / local / eclipse / eclipse (start and make relevant settings can be set up graphical desktop environment desktop shortcut)
5. Myeclipse6.0 installation
Myeclipse installation with the windows installed under the shell is not much difference between the implementation of MyEclipse_6_0_1GA_E3_3_1_Installer.bin documents:
# ./MyEclipse_6_0_1GA_E3_3_1_Installer.bin
(If necessary, to change the permissions: # chmod 777 MyEclipse_6_0_1GA_E3_3_1_Installer.bin)
Press enter it will be after you Detect system environment, to be detected after normal Myeclipse installation screen will appear, which operate with the windows down to operate under are the same,
This will let you select inside the eclipse installation directory, here is my / usr / local / eclipse, and then select the installation directory, enter / usr / local / myeclipse, then next on the list along the way the installation is complete, restart eclipse, click on the menu item Help -> Software Updates -> Manager Configuration
At open windows can be seen already at myeclipse there. Followed by the register, you can use the following account number and password:
Subscriber: administrator
Subscription Code: nLR7ZL-655342-54657656405281154
Registration after:
Subscriber: administrator
Product ID: E2MY (MyEclipse Standard Subscription)
License version: 1.0
Full Maintenance Included
Subscription expiration date (YYYYMMDD): 20091021
Number of licenses: 897
Configure Tomcat:
eclipse in the selection window -> preferences, select the pop-up window Myeclipse -> Servers -> Tomcat5
Then here in the Tomcat server selection "Enable", select below Tomcat Home Directory you installed tomcat directory, then the lower right corner of the Apply application, determine the exit of all installed the following Writing a small program to be tested
1. Myeclipse set up the use of engineering tests.jsp page write the following code
<% @ Page contentType = "text / html; charset = gb2312" language = "java" import = "java.sql .*"%>
<html>
<body>
<table border=1>
<%
Class.forName ( "orj.git.mm.mysql.Driver"). NewInstance ();
Connection con = java.sql.DriverManager.getConnection ( "jdbc: mysql: / / 127.0.0.1/tery", "root", "123456");
Statement stmt = con.createStatement ();
ResultSet rst = stmt.executeQuery ( "select * from ad_roleInfo order by role_id;");
while (rst.next ())
(
out.println ( "<tr>");
out.println ( "<td> + rst.getString (" role_id ")+</ td> ");
out.println ( "<td> + rst.getString (" role_name ")+</ td> ");
out.println ( "</ tr>");

)
rst.close ();
stmt.close ();
con.close ();
%>
</ table>
</ body>
</ html>
Note: The database link may need to mysql-connector-java-3.1.14.bin.jar (corresponding to version) http://dev.mysql.com/downloads/connector/j/5.1.html Search the corresponding version download
2. Set up the database using the mysql command shell and then set up under
# mysql-u root-p123456
# create database tery;
# use tery;
# Create TABLE ad_roleInfo (
role_id INT NOT NULL,
role_name VARCHAR (20),
PRIMARY KEY (role_id)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;

insert into ad_roleInfo values (1, 'super administrator');
insert into ad_roleInfo values (2, 'General Manager');
insert into ad_roleInfo values (3, 'Marketing Department');
insert into ad_roleInfo values (4, 'technical department');
insert into ad_roleInfo values (5, 'Customer Service Department');
insert into ad_roleInfo values (6, 'Accounting');
3. Link test
http://127.0.0.1/test.jsp
Corresponding data table shows that really show a successful installation, the corresponding version of the installation of high basic and consistent in this configuration, please refer to the corresponding versions of linux make corresponding adjustments
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of linux under java tomcat mysql eclipse installation

  • In the Linux platform to install and configure Ruby on Rails Detailed

    ruby on rails recommend the production environment is running Linux / FreeBSD / Unix, or Unix family of operating systems, using lighttpd + FCGI solution. The following will be my Linux operating system, lighttpd + FCGI, MySQL database as an example, comp

  • ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles

    Keyword: ActiveMQ ActiveMQ practice the road (four) ActiveMQ 4.x + JBoss 4.x MDP actual articles At <<ActiveMQ Practice ( Three ) ActiveMQ 4.x +JBoss 4.x Consolidating articles >> which we compare in detail the ActiveMQ with JBoss integration

  • Shoes - Construction Ruby client gadget

    Shoes Ruby are cross-platform GUI applications, recently released a new version, it is a very interesting Ruby GUI client, the following are some characteristics of Introduction: 1. Cross-platform support for windows / linux / mac os 2. Very small, t ...

  • servlet specification 2.2

    Introduction: Spring Security watch, when to see more use of the Servlet Listener, filter and so on. Filter done, listener never. Therefore want from the Internet to find a closer look at the servlet specification, go thorough investigation, there is no s

  • spring myfaces hibernate richfaces

    1.web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j

  • Process migration from tomcat to websphere changes

    Process migration from tomcat to websphere changes Because customers use the web application server software used by different what tomcat5, tomcat6, websphere5.1, websphere6.1, weblogic8, and so on, and the software used inconsistent standards, ibm's

  • JAVA EE JSP_JNDI

    dsfdsa http://lindows.javaeye.com/admin/blogs/213348 Tomcat 6 with the connection pool data source configuration http://www.blogjava.net/ec2008/archive/2008/07/19/216063.html project: test Driver path: D: \ workspace \ test \ WebRoot \ WEB-INF \ lib ...

  • Learn Java flow

    Related Articles: J2EE without EJB Introducing to Spring Framework (English revised edition) J2EE without EJB caused consider Recommend circles: reading space More related recommend Java Learning Path (1), tools, articles First, JDK (Java Development Kit)

  • The EJB3 Persistence

    EJB3 persistence with Hibernate is very similar to the mechanism: Environment: Server: JBOSS5.0 Database: MySQL5.0 1. Set up a data source First of all, in jboss-5.0.0.GA \ server \ default \ deploy, the establishment of a database used to connect the dat

  • Servlet brief introduction

    Servlet brief introduction: Servlet is a small application server Are used to complete the B / S architecture, the client requests the response to treatment Platform independence, performance, able to run thread Servlet API for Servlet provides the s ...

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries