current position:Home>[Linux 5] install JDK and MySQL in Linux and simulate interview video in Java

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

2022-01-26 21:35:07 m0_ fifty-four million eight hundred and sixty-one thousand fou

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

![](https://img-blog.csdnimg.cn/20210417000521879.png?x-oss-process=

《 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

image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2d1b3J1aV9qYXZh,size_16,color_FFFFFF,t_70)

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 notice
author[m0_ fifty-four million eight hundred and sixty-one thousand fou],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201262135058466.html

Random recommended