I followed following steps to run my web application
- I have created an ec2 instance of ubuntu 16.04 LTS on aws.
- Using remote login by ssh, I installed java 8, and then tomcat: sudo apt-get install tomcat7. (tomcat9 could not install using same command)
- I renamed my war file to ROOT(because project name should not be in URL) and copied it to webapps folder.
- After starting tomcat, using http://IP_address:8080 I can access my website. default setting in server.xml: connector port=”8080” ... I checked which services are running netstat –plnt 8005(server shutdown port), 8080(connector port)
- I changes port number from server.xml to 80: connector port=”80” ..
Then started tomcat.
I could not access my website.
also following command doesn't show any service running on port 80.
netstat –plnt 8005(server shutdown port)
What changes need to be made so that website will be accessible without entering any port number in URL. (I already mapped domain name to IP address.) I want to use java 8 features hence I prefer tomcat 9 installation.
./startup.sh
– Cargeh