Current location - Quotes Website - Collection of slogans - What does linux think of tomcat port numbers?
What does linux think of tomcat port numbers?
1. Go to the tomcat configuration file and see what the port of tomcat is. The configuration file is generally: $CATALINA_HOME/conf/server. Look for it.

< connector port = "8080" redirect port = "8443" connectiontimeout = "20000" protocol = "http/1.1"/> this line. Here, the port is 8080.

2. Use the netstat command to check the occupancy.

Netstat -ap |grep 8080 // Find out whether the tomcat port is occupied.

3. Others

Netstat -tln // means to digitally view the port you are listening on.

Netstat -ap // View the ports occupied by all applications.