Toss for a long time, in accordance with the official website installation process installed more than 3 times, the discovery is still not successful, the final discovery is the Linux machine itself problem, because I use the company's virtual machine, it is possible that the machinery itself in the process of a migration occurred problems, resulting in my tragedy. The final solution was to re-setup virtual machine and to have a smooth and successful installation.
This artical shows the install, configure Tomcat in Linux machine. Noted that all of steps is based on root user.
Step 1:verify Java version, if no Java found, please install JDK
Java-version
Step 2:download Tomcat
Step 3:unzip the package, and move it to target folder
Tar zxf apache-tomcat-8.0.36.tar.gz
Cp-r apache-tomcat-8.0.36/*/usr/local/tomcat
Step 4:add Catalina_home
VI ~/.BASHRC
#!/bin/bashcatalina_home=/usr/local/Tomcat
SOURCE ~/.BASHRC
Step 5:change Execute permissions for following files
chmod +x $CATALINA _home/bin/startup.sh
chmod +x $CATALINA _home/bin/shutdown.sh
chmod +x $CATALINA _home/bin/catalina.sh
Step 6:start Tomcat
$CATALINA _home/bin/startup.sh
Step 7:check Web site
http://localhost:8080
Step 8:start Catalina Service
sudo $CATALINA _home/bin/catalina.sh start
Step 9:deploy web App or Web service into $CATALINA _home/webapps folder.
Issues:
- Cannot access Web site.
- Cannot stop Catalina service.
- Could Not contact localhost:8005
The problems is sovled by formatting Linux server.
Linux Install Tomcat