Tomcat server startup error:

Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I ran into this problem when I started Tomcat in Eclipse. At first, I thought I had multiple projects open, so I deleted all Tomcat in Servers and restarted it. As a result, I still reported an error and the port was occupied. Hoping for a miracle. It didn’t happen. Then I opened Baidu to search this question. Let’s cut the crap and go straight to all the solutions.

Solution: Method 1: Kill the software that occupies the port.

Open task Manager, find the Java VIRTUAL machine related process javaw.exe and terminate it. If the problem is not solved, look down. If this process is not present, it is possible that other software is occupying the port. In the start menu – > run – > CMD – > input netstat – ano or netstat – an | grep 8080 command, you can check which process has occupied ports 8080 and 8009, find take up port software PID, and then find the corresponding PID in task manager software, Stop the process. If the PID column is not displayed in task Manager, select PID (Process Identifier) if you need to set PID.

\

\

Method 2: Change the default Tomcat port number.

Modify the Tomcat configuration file. Such as: C: / tomcat5.5.25 / conf/server XML < Connector port = “8080” maxHttpHeaderSize = “8192” maxThreads = “150” minSpareThreads = “25” maxSpareThreads=”75″ enableLookups=”false” redirectPort=”8443″ acceptCount=”100″ connectionTimeout=”20000″ disableUploadTimeout=”true” />

Connector node, change the port in port=”8080″ to an unoccupied port.

The original address (blog.csdn.net/xinxin19881…

\

If it still doesn’t work, I will doubt whether the port is open, and then add the method about checking whether the port is open

\

\

\

How do I check whether port 8080 on the peer COMPUTER is enabled

What is the peer computer

The so-called peer computer is a relative concept corresponding to the local computer. Simply understood, it corresponds to the local computer. The computer at the other end of the same optical fiber can be called the peer computer.

The concept of peer computer is common in website maintenance. The peer computer refers to the FTP server at the peer end.

2. How to determine whether port 8080 of the peer computer is open

(a) Open CMD, enter Telnet and press Enter, the following two cases

1, prompt no command:

Access control panel —-> Programs —-> Enable or disable Windows, and enable Telnet Client and Telnet Server

2. The command is successfully executed

(2) Start to test port 8080 of the peer computer

This section tests whether port 8080 of 192.168.1.42 is enabled

1. Close the Telnet command window and open a CMD command window again

2. Take port 8080 of zhidao.baidu.com as an example, enter Telnet zhidao.baidu.com 8080 in the CMD command window and press Enter

3. Wait for a moment. If the CMD window automatically closes or you are prompted to connect, the port is closed

4. If the following dialog box is displayed, the port is open

2. Open the port

\

1. Open port \ in Windows 7

Win7 Firewall exception setting method

Control Panel (Select the view mode as the large icon in the upper right corner)– Firewall — Advanced Settings — Advanced Settings — Outbound Rule — Far right New rule “New Outbound Rule Wizard”. In the first step of the wizard, select the type of firewall rule to be created, and select the second port.

 

Win7 firewall add port method

Win7 firewall has done a relatively large upgrade Settings have been divided into inbound and outbound. The following uses remote access to Tomcat 8080 as an example. Control panel all Control Panel items Windows Firewall enter

Inbound rule setting Step 1 select the inbound rule then create a new rule, select the port, and then the next step

The second step is to select TCP. Select a specific port and enter ports. If there are multiple ports, separate them with commas (,)

Step 3, select allow connection

Step 4 Select the scope to apply the rule

Step 5 Enter the rule name

 

Outbound rule setting step 1 select the inbound rule, then create a rule, select the port, and then next step step 2 select TCP select a specific port and enter the port. If there are multiple ports, separate them with commas (,) for example :88,8080 step 3 select allow connections

Step 4 Select the scope to apply the rule

Step 5 Enter the rule name

At this point, firewall rules set up, can be enabled! In addition to Windows 7 IIS7, just enable the inbound rule: BranchCache content retrieval (HTTP-IN) outbound rule: BranchCache content retrieval (HTTP-out) can be.

\

Steps:

\

\

\

\

\

\

\

\

\

\

The output rule is set the same way

You can see

\

\

\

\

\

\

2. The Windows 2003 server port is open

After logging in to the server remotely, go to the control panel and double-click the firewall: \

\

\

Click the Exceptions TAB to see the open ports that have been added to the server, and click Add Port.

\

In the box that pops up, enter the port number you want to add, for example, 8080, and then click OK. \

\

You will see the port number 8080 added in the exception. Click OK and you are done. \

\

Enter the control panel again and click “Network Connections” \

\

Right-click on the local connection property and double-click “Internet Protocol (TCP/IP)” \

\

Click the “Advanced” option \

\

Click “Options” in the box that pops up, click “Properties” \

\

Add the TCP port in the DIALOG box that is displayed for TCP/IP filtering. For example, add 8080 and click OK. \

\

You can see that port 8080 has been added. After confirming the configuration, restart the server to take effect.

 

Tips: If a third-party firewall (with firewall level) is installed on the server, the operation levels and steps are the same as those for Windows Firewall. C: Documents and Settings administrator>netstat -na Test whether the port is open: C:\Documents and Settings\ Administrator > Telnet 127.0.0.1 8080 Connecting to 127.0.0.1… Unable to open connection to host on port 8080: connection failed

The original address (blog.csdn.net/zzq900503/a… Captain white night

\

During this process, the firewall cannot be opened, and the system file is deleted visually

1. How do I repair system files

Methods/steps

  1. 1

    Click “Start” – “Run”.

  2. \

  3. \

  4. 2

    In the Run window that opens, enter CMD and click OK.

  5. \

  6. \

  7. \

  8. 3

    Enter SFC /VERIFYONLY in the command line window (with white characters on a black background) to scan for the integrity and correctness of all system files. Due to the large number of system files, the verification takes some time. Please wait patiently.

  9. \

  10. \

  11. \

  12. 4

    After the scan. If no incomplete system file is found, close the cli.

  13. \

  14. \

  15. \

  16. 5

    If an incomplete or incorrect system file is found, enter SFC /SCANNOW to repair all the system files in question. The whole repair process takes place automatically without human intervention.

  17. \

\

\

Serious damage can only be downloaded software repair here recommended a software, I finally rely on this software to repair Tweaking

Official website (www.tweaking.com/)

Private download address baidu Cloud: (link: pan.baidu.com/s/1jHDilq2 password: PRVT)

Don’t use 360. It’s the one that deleted my system files