Recently used. Deploy Tomcat 7 in Ubuntu and enable port 80. Because the new version of Ubuntu requires root to use ports lower than 1024 by default, the root user is used during deployment. The procedure is as follows.
1. Install Tomcat 7
Apt-get update
Apt-get install tomcat7
After the installation is complete, visit directly to see if the page can be opened:
Http:/// ip: 8080
If you can, just put the corresponding project in:
/Var/lib/tomcat7/webapps
, Restart the service:
Service tomcat7 restart
2. Configure port 80
If you need to configure port 80 for access, install authbind first:
Apt-get install authbind
Then
Sudo touch/etc/authbind/byport/80
Modify the Tomcat configuration file again:
Vi/etc/default/tomcat7
Find the last line, remove # AUTHBIND = no #, and change it:
AUTHBIND = yes
Save and restart the Tomcat service.
If you want to deploy multiple projects under Tomcat, that is, multiple war packages, you can decompress the war package and copy the folder to the webapps directory;
Unzip the command:
Unzip-oq web. war-d web
Copy to the/var/lib/tomcat7/webapps directory and restart Tomcat.
Supplement: tomcat7.0 port 80 for windows Deployment
1: enter netstat-ano in the command line to obtain the PID corresponding to the port number.
Pid to display
The port display has been changed, so no pid is displayed.
It is found that the process pid occupies port 80. 4. The process is system. I guess.
SQL Server Reporting Services (MSSQLSERVER) (from experience, this service generally occupies port 80), so as shown in the figure below, disable the service OK!