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.
rpm -qa | grep -i java
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
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
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