First step: Open Eclipse, select the "Servers" tab and click on the link below to create a new server.
If you cannot find the Server tab, you can use the following methods:
Select Window--> Show View--servers.
Step Two: Select the type and version number of the new server.
Click "Finish".
Step three: Edit the new server.
Double-click New Server to open the configuration page.
Select the "Server Locations" tab, select the second item "Use Tomcat installation (takes control of Tomcat installation)" and click on the "Server Path" section below. Browser "button to select the file path of the native Tomcat.
"Ctrl+s" Saves the settings.
Fourth step: Open the server to test whether the configuration was successful.
Select the new server, right-click on the "Start" option. Or click on the right "start" button (the green-bottom round triangle arrow) to start the server.
The console has output information:
Open the browser, enter "http://localhost:8080/" to access the open server, enter the Tomcat home page, the server configuration is complete.
Configuring the Tomcat server in eclipse