Centos6.5 Installing the JDK +tomcat +mysql installation Tutorial

Source: Internet
Author: User
Tags iptables

Installation Instructions:

System Environment: Centos 6.5

Installation Method: RPM Installation

Software Preparation: jdk-7-linux-x64.rpm

: http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html


First, install the JDK7

1, check the original version of the system

Java-version

Rpm-qa | grep Java further review JDK information

Rpm-e--nodeps XX (software package) Brute Force Delete package

2. Upload a new JDK package and install

RPM-IVH jdk-7u75-linux-x64.rpm

3. JDK Verification Installation

JDK is installed by default in/usr/java

4. Configure Environment variables

After the device has jdk-7u75-linux-x64.rpm installed, you need to configure the environment variables

Configuration file/etc/profile

Vi/etc/profile

Append the following content to the file:

Java_home=/usr/java/jdk1.7.0_75

Jre_home=/usr/java/jdk1.7.0_75/jre

Path= $PATH: $JAVA _home/bin: $JRE _home/bin

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib

Export Java_home jre_home PATH CLASSPATH


To make it effective:

Source/etc/profile #使修改立即生效

Echo $PATH #查看PATH值


Ii. installation of Tomcat

1. Upload the Apache-tomcat-7.0.65.tar file to the/usr/local folder,

2. Unpack the Package

TAR-ZXVF apache-tomcat-7.0.65.tar.gz #解压压缩包

3. Delete the compressed package

Rpm-r/usr/local/apache-tomcat-7.0.65.tar.gz #删除压缩包

4. Create the Tomcat folder and move the extracted files to the Tomcat folder

MV apache-tomcat-7.0.65 Tomcat

Ls

CD Tomcat

Ls

5 Starting Tomcat

/usr/local/tomcat/bin/startup.sh #启动tomcat

6, firewall open 8080 port

Add 8080 ports to the firewall configuration and do the following

Vi/etc/sysconfig/iptables

-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 8080-j ACCEPT F # Open 8080 ports

Servcie iptables Restart #重启防火墙

7. Verifying the Tomcat installation

See if Tomcat is working properly with the following address

http://192.168.37.129:8080/

See the Tomcat interface, indicating successful installation


Third, install MySQL

1. Install MySQL using yum

I blog in a separate description of the CentOS system installation MySQL documentation, the need for friends can view my blog. Thank you.






Centos6.5 Installing the JDK +tomcat +mysql installation Tutorial

Related Article

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.