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