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: & TUrl = an1npDpbKod7kSYrROhENTonIec2W0D1Lc4nXz + pGFFranixdCdgxDTPbW4 = & TicketId = dVN6OgZLN +4 y / w == & GroupName = SDLC & BHost = & 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:
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
Download Address: (Probably expired)
You can download by following these steps:
Binary Distributions found the following Core items click tar.gz (pgp, md5) to download the tar.gz
Download Address: # linux-static-x86-32bit-rpms
See the Linux x86 generic RPM (statically linked against glibc 2.2.5) downloads download
Download Address: ps/R- (probably expired)
You can download by following these steps: ps/R-
Download a list of the top of Eclipse SDK to find Linux (x86/GTK 2) (Supported Versions) eclipse-SDK- 138 MB eclipse-SDK- (md5) (sha1)
Click eclipse-SDK- download
Download Address: (Probably expired)
You can download by following these steps:
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
# 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
PATH = $ PATH: $ JAVA_HOME / bin
# Source / etc / profile
# Java-version
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 /
Successful kitten that appears to attach to the system startup
# vi / etc / rc.d / rc.local
# / usr / local / tomcat / bin / (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-
# tar-zxvf eclipse-SDK- / 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 .*"%>
<table border=1>
Class.forName ( ""). NewInstance ();
Connection con = java.sql.DriverManager.getConnection ( "jdbc: mysql: / /", "root", "123456");
Statement stmt = con.createStatement ();
ResultSet rst = stmt.executeQuery ( "select * from ad_roleInfo order by role_id;");
while ( ())
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) 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)

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
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

分类:Java 时间:2009-05-09 人气:1900
blog comments powered by Disqus


  • Linux install tar.gz (tgz), rpm of the package 2011-06-27

    1.Linux install Tar.gz (Tgz) package Tar.gz under Linux for the extension package, is packaged with Tar and compressed with the Gzip program package. To install this package, you need to unzip the package using "tar zxfv filename.tar.gz" can unz

  • mysql under linux binaries (tar.gz) installation 2010-05-22

    ubuntu is very easy to install mysql, ubuntu directly if you are running: To install MySQL, you can run the following terminal command prompt: sudo apt-get install mysql-server sudo apt-get install mysql-client sudo apt-get install php5-mysql / / Ins

  • Linux decompression. Tar.gz 2011-09-12

    //( Using the root account login , Using other users then action might have insufficient rights ) [kk@localhost ~]#su root Password : // Enter the root password // ( Switch to the tar.gz file directory , Here my tar.gz files on the desktop ) [root@lo

  • Learn Linux, compile and install mysql-5.0.45.tar.gz 2011-04-24

    Compiled under Linux install mysql-5.0.45.tar.gz Reproduced <! - Body start -> (1) ------------- ---------- Preparatory work 1: If the downloaded file is named: mysql-5.0.45.tar.gz 2: If the copy to the / home under the 3: groupadd mysql # add the m

  • Linux software packages to install tar.gz.rpm.tar.bz2 2010-03-02

    1.Linux install Tar.gz (Tgz) package Linux, to Tar.gz the extension package, is packaged with Tar and compressed with the Gzip program package. To install this package, you must first decompress the package, use the "tar zxfv filename.tar.gz" ca

  • java in IDE development tools related presentations 2010-07-16

    Java development in every aspect, every IDE can be competent, but under different development if you do Swing development, web development, or business development, we will choose a different IDE. Swing Development: If you specialize in Swing develop

  • In the JSP in This absolute uri cannot be resolved - the solution 2010-08-28

    About JSP in org.apache.jasper.JasperException: This absolute uri cannot be resolved in either web.xml or the jar files deployed with this application According "master JSP - Web application development technology a

  • Android Development Kit (SDK.JRE.Eclipse.ADT plug-in) Download 2010-10-10

    Android development kit (SDK, JRE, Eclipse, ADT plug-in) Download Android development kit contains the Android SDK, Java run-time library (JRE), Eclipse, ADT plug-in links to the latest version of the official download (Windows version) Android 2.1 S

  • <% @ Taglib uri = "" prefix = "c"%> does not recognize the error: to htt 2008-08-28

    <% @ Taglib uri = "" prefix = "c"%> does not recognize the error: To https: / / / download.html to download jstl of the two on the jar package. Import project can be

  • JAVA Web rapid development and deployment (Javarebel efficient tomcat real hot deployment) 2010-05-29

    Java web development and deployment of efficiency of making java web application development process, often encounter this problem, modify a java file (*. java), need to restart the web server (such as tomcat, weblogic, etc.), the deployment project.

iOS 开发

Android 开发

Python 开发



PHP 开发

Ruby 开发






Javascript 开发

.NET 开发



Copyright (C), All Rights Reserved. 版权所有 黔ICP备15002463号-1

processed in 0.551 (s). 13 q(s)