I bought a Tencent Cloud server and started playing. Let’s install the environment first.
install java
yum -y install java-1.7.0-openjdk*
Check java version
java -version
When you can see the java version, the installation has been successful.
Then start to install tomcat
yum install tomcat
After installation, you can see the version of tomcat, indicating that the installation was successful.