Environment configuration of JDK, mysql and tomcat under Centos7

  1. jdk configuration

JDK path

export JAVA_HOME=/usr/local/jdk8
export CLASSPATH=.:{JAVA_HOME}/jre/lib/rt.jar:{JAVA_HOME}/lib/dt.jar:{JAVA_HOME}/lib/tools.jar export PATH=PATH:${JAVA_HOME}/bin

  1. source /etc/profile
  2. java -version
  3. Install Docker
    If you want to learn more about Dock, you can configure Alibaba Cloud's accelerator, you know the domestic environment

sudo apt-get -y update

sudo apt-get -y install docker

sudo systemctl start docker


  1. mysql installation (using docker image)

docker pull mysql:5.6


Get it in one line of code, start the mirror


docker run -it --name tanoak-mysql -p 3308:3306 -v /my/custom:/etc/mysql/conf.d -e MYSQL_ROOT_PASSWORD=123123 -d mysql:5.6


  1. tomcat configuration
    After installing the JDK, just upload the tomcat to the server, find startup.sh in the bin directory of tomcat and run ./startup.sh
    No accident, there will be a firewall, so you need to turn off the firewall
service iptables stop #Out of service

If you encounter problems during the configuration process, you can leave a message and discuss with each other.

Recommended Posts

Environment configuration of JDK, mysql and tomcat under Centos7
Installation and use of Mysql under CentOS
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Installation and configuration of redis under centos7
Installation and configuration of JDK in CentOS 7 system
Installation and configuration of rsync server under CentOS 6.5
Centos mysql installation and configuration
Centos7 installation and configuration of Jenkins
Deploy and optimize Tomcat under Centos
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
Centos7 mysql database installation and configuration
Tomcat configuration JMX in centos 6.5 environment
Detailed explanation of Spark installation and configuration tutorial under centOS7
Introduction to CentOS7 installation process of openjdk, tomcat and mysql
Centos7.5 configuration java environment installation tomcat explanation
Centos-6.5 installation and deployment of LNMP environment
JDK environment variable configuration method under ubuntu
Centos MySQL8 configuration
CentOS 7 installation and configuration graphic tutorials under VMware10
Install svn and configuration through yum under CentOS
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
Installation and configuration of CentOS 7 in VMware Workstation
MySQL 8.0 installation and deployment under CentOS, super detailed!
Installing CentOS 6 and SSH configuration under Windows 8 Hyper-V
Modify the default encoding of mysql5.6 under CentOS7
Distributed deployment of Apollo configuration center under CentOS8
MySQL 8.0 installation, deployment and configuration tutorial on CentOS 8
Install mysql5.7 under CentOS7
CentOS7 install JDK8, tomcat8
Install mysql under Centos 7
Install mysql5.1 under CentOS6.5
Installation and cracking of Jira7 operation records under Centos
Installation and simple practice of MySQL in ubuntu environment (1)
[CentOS environment deployment] Java7/Java8 deployment under CentOS
Build docker environment under Centos6.5
CentOS 7 install JAVA environment (JDK 1.8)
Centos7 installation and configuration prometheus
CentOS6.5 install Java 8 and Tomcat8
CentOS installation and configuration cmake
Install MySQL under Linux (CentOS 7)
Install Java JDK8 under CentOS6
CentOS6.5 install Java 8 and Tomcat8
Implementation of CentOS8.0 Network Configuration
CentOS environment installation of Docker
The problem of MySQL import file failure in CentOS environment
Deployment of vulnerability scanning and analysis software Nessus under CentOS
Basic usage and examples of yum under Liunx (centos8) (recommended)
Centos 7 install jdk and package service service
CentOS7 yum install and start mysql
Install and configure keepalived under CentOS 5.9
CentOS8 deploys LNMP environment to compile and install mysql8.0.29 tutorial details
CentOS Yum compile and install MySQL 5.6
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
Use Nginx and u under CentOS
Centos6.5 installation and deployment of KVM
Installation under centos6.9 of jenkins learning
Centos7 hadoop cluster installation and configuration
CentOS7 installation and maintenance of Gitlab