Installation tomcat record

Download the complete tomcat extract the installation:

cd apache-tomcat-9.0.12/bin/

Start: ./ startup.sh

Close: ./ shutdown.sh

Open port 8080:

/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

netstat -ano | grep 8080

How to check whether tomcat start:

ps -ef | grep tomcat

rpm -qa | grep tomcat

http: // my IP: 8080 /

 

 

Note: When netstat, show -bash: netstat command not found.

The reason is because the network tool is not installed. Run the following command on it.

yum -y install net-tools

 

 It can be.

Guess you like

Origin www.cnblogs.com/devin-sl/p/12059774.html