Linux Configuration Jdk,mysql Environment

Source: Internet
Author: User

First, install the JDK

1. Download the JDK

http://124.205.69.130/files/6130000005CB2796/download.oracle.com/otn-pub/java/jdk/8u144-b01/ 090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz

2. Transfer downloaded JDK to Linux virtual machine via VMware Tools tool

It is important to note that after the file is uploaded to the virtual machine desktop, it is recommended to move the file to the/usr directory

3. Unzip the downloaded file

TAR-ZXVF jdkxxxxxxx.tar.gz

4. After unpacking, rename the extra folder

MV JDKXXXXX/JDK

5. Configure Environment variables

Enter the profile file under the/ect path

Vim/ect/profile

Add environment configuration variables at the bottom

Java_home=/usr/jdk

Path= $JAVA _home/bin

Export Java_home PATH

Save after exiting

6. Make the changed environment variable effective

Source/etc/profile

7. Check the Environment

Java-version

If it appears

Java Version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31)
OpenJDK 64-bit Server VM (build 24.51-b03, Mixed mode)

and other words to indicate successful installation

Second, install MySQL

1. Download the image file

wget Http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17-linux-glibc2.5-x86_64.tar

(General yum command download good file default location is:/var/cache/yum)

2.

Linux Configuration Jdk,mysql Environment

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.