Install JDK, MySQL, Tomcat, and JDK Tomcat in Linux

Source: Internet
Author: User

Install JDK, MySQL, Tomcat, and JDK Tomcat in Linux
1 dependent Installation

  • Because some support packages need to be downloaded from the Internet during JDK, Tomcat, and MySQL installation, you need to install the dependencies in advance.
yum install glibc.1686yum -y install libaio.so.1 libgcc_s.so.1 libstdc++.so.6yum update libstdc++-4.4.7-4.el6.x86_64yum install gcc-c++

 

  • You can add or uninstall programs in the control panel of windows to install, uninstall, and view programs.
  • The rpm command in Linux is similar to the function of adding/detaching a program in windows. You can also install, view, and uninstall a program.
    • Local program installation: rpm-ivh program name
    • View local programs: rpm-qa program name
    • Local program uninstall: rpm-e program name -- nodeps
  • Yum command: equivalent to the rpm command that can be connected to the Internet. Download the program installation package and update package online, and then automatically execute the rpm command.

 

2. Install JDK in Linux to uninstall openJDK.
  • View jdk
rpm -qa | grep -i java

  • Uninstall openjdk

 

2.2 install JDK 2.2.1 create the JDK installation path
  • Create a folder java directory in/usr/local/
mkdir -pv /usr/local/java

2.2.2 upload JDK of Linux to Linux (using xshell or ftp tools)

2.2.3 decompress jdk to/usr/local/java
tar -zxvf jdk-8u144-linux-x64.tar.gz -C /usr/local/java/

2.2.4 configure Environment Variables
vim /etc/profice

  • Add the following content at the end
export JAVA_HOME=/usr/local/java/jdk1.8.0_144export JRE_HOME=/usr/local/java/jdk1.8.0_144/jreexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib:$CLASSPATHexport PATH=$JAVA_HOME/bin:$PATH

  • Update/etc/profile
source /etc/profile

 

2.2.5 test whether the installation is successful
java -version

 

3. Install MySQL3.1 in Linux to uninstall the original MySQL
 rpm -qa | grep -i mysql

  • Uninstall MySQL

3.2 upload the installation package to the/root directory

3.3 install MySQL3.3.1 install the server
rpm -ivh MySQL-server-5.6.37-1.el7.x86_64.rpm

3.3.2 install the client
rpm -ivh MySQL-client-5.6.37-1.el7.x86_64.rpm 

 

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.