I have installed Amazon EC2 instance and have set up tomcat7 on it with
sudo yum install tomcat7 command. Also I have added a rule
in instance's security group.
Also I ran tomcat7 service and now
$ service tomcat7 status tomcat7 (pid 3979) is running... [ OK ]
But I still cannot access tomcat's greeting page:
$ wget http://localhost:8080 --2012-05-21 19:33:56-- http://localhost:8080/ Resolving localhost... 127.0.0.1 Connecting to localhost|127.0.0.1|:8080... connected. HTTP request sent, awaiting response... 404 Not Found 2012-05-21 19:33:56 ERROR 404: Not Found.
What else should be done?
Also I get "network unreacheable" error while trying to access the server from my home computer.
>wget http://<DNS>.amazonaws.com:8080 SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc syswgetrc = c:/progra~1/wget/etc/wgetrc --2012-05-21 23:37:35-- http://<DNS>.amazonaws.com:8080/ Resolving <DNS>.amazonaws.com... xxx.xx.xxx.xxx Connecting to <DNS>.amazonaws.com|<IP>|:8080... failed: Network is unreachable.