[Linux 5] install JDK and MySQL in Linux and simulate interview video in Java

linux install jdk mysql linux

2、mkdir /opt/jdk

3、 adopt xftp7 Upload jdk To /opt/jdk Next

4、 decompression tar -zxvf jdk-8u144-linux-x64.tar.gz

5、mkdir /usr/local/java

6、mv /opt/jdk/jdk1.8.0_144 /usr/local/java

7、 Configuration files for configuration environment variables vim /etc/profile

8、source /etc/profile  Make profile effective


《 A big factory Java Analysis of interview questions + Back end development learning notes + The latest architecture explanation video + Practical project source code handout 》

【docs.qq.com/doc/DSmxTbFJ1cmN1R2dB】 Full content open source sharing


9、 Output hello Linux

Two 、 install Tomcat

1、 download Tomcat

2、mkdir /opt/tomcat

3、 adopt xftp7 Upload jdk To /opt/tomcat Next

4、 decompression tar -zxvf apache-tomcat-8.5.65.tar.gz

5、 start-up tomcat

6、 Invalid browser access

7、 take 8080 Port into Linux A firewall , to open up 8080 port

8、 Browser access 8080

9、 Write a simple one html file , And visit the

3、 ... and 、 install MySQL

1、 New folder /opt/mysql

2、 download MySQL Installation package

function wget http://dev.mysql.com/get/mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar

3、 function tar -xvf mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar

Friendly tips :Linux You can press the left side of the keyboard when entering a long existing string tab Key completion .

4、Linux Lower installation MySQL Must uninstall centos Self contained mariadb database

(1) function rpm -qa|grep mari, Inquire about mariadb Related installation package ;

(2) function rpm -e --nodeps mariadb-libs uninstall mariadb Related packages

5、 Start installation MySQL

Run the following in sequence , The order must not be disordered :

  1. rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm

  2. rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm

  3. rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm

  4. rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm

copyright:author[m0_ fifty-four million eight hundred and sixty-one thousand fou],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/01/202201262135058466.html