Java deployment environment setup (Linux)
Environment construction must be JDK, Tomcat and MySQL (basic)
Additional packages may be used in the project
JDK: it contains the complete class library required for JRE and development.
Tomcat: it is a web container. Projects are usually thrown into webapps for external access.
Mysql database: the source of Web project data access.
Nginx: it is mainly used for load balancing and reverse proxy.
Maven: make the web project into a war package to save resources and space to the greatest extent.
FTP server: it is mainly used to separate a large number of resources such as pictures or files from web projects, so as to reduce server pressure and maximize access efficiency.
Redis is mainly used for caching. Of course, it has many uses
(1) Refer to this website for JDK installation: https://www.cnblogs.com/xuehx/p/6143251.html
(2) Install Tomcat and decompress it directly (download from the official website and decompress it in one step)
(3) For MySQL installation, please refer to this website: https://www.cnblogs.com/xiaotao726/p/6562265.html (an error will be reported in the middle
libaio. so. 1: cannot open shared object file
Solution: execute this command using Yum install libaio * to solve the problem. Usually, an error is reported when initializing mysql
)
(4) Maven installation and download
wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz
tar -xzvf apache-maven-3.5. 2-bin. tar. gz
vim /etc/profile
The configuration is as follows: