Graphical installation of the Tomcat server under Linux specific process, for your reference, the specific content as follows
Upload Tomcat server:
First, you need to download the tomcat-upload to the server.
Install Tomcat Server
Decompression Tomcat Server Compression pack
It's already under the Java directory.
Tar zxvf apache-tomcat-7.0.72.tar.gz
The decompression succeeded:
Configure Environment variables
The tomcat server runtime requires JDK support, so you must configure the environment variables that the JDK uses
cd/etc/
LS #显示目录下所有文件及文件夹
Edit the profile file under/etc:
VI Profile
If an option appears-press: E
Which is when you configure the JDK.
To modify the boot port of the Tomcat server
cd/java/apache-tomcat-7.0.72/conf/
Enter the Conf directory of the Tomcat server:
Locate the Server.xml file.
Use:
VI Server.xml
Edit the Server.xml file.
Modify the port that the Tomcat server starts with, for example, by changing to 10001
After modifying the Server.xml file, save and exit.
esc–>:wq–> Carriage return
To start and close a Tomcat server
Start Tomcat Server
Enter the bin directory of the Tomcat server
Cd/java/apache-tomcat-7.0.72/bin
To start the Tomcat server by executing the./startup.sh command:
./startup.sh
Look at the log information for the Tomcat server to see if the Tomcat server has started properly, enter the logs directory under the Tomcat server, and open the Catalina.out file for viewing
Cd/java/apache-tomcat-7.0.72/logs
Cat Catalina.out
View Catalina.out
10001 Ports for access
Finally, if you want to access through IP:
/bin/iptables-i input-p TCP--dport 10001-j ACCEPT
Edit firewall rules.
This article is written by [familiar memory], all rights reserved.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.