我按照以下步骤在redhat上安装tomcat 7。 VM(redhat)当我ping机器的ip或fqdn时,服务器启动并运行。
1) downloaded/installed Java 7 (1.7.0_75)
2) set env variables JAVA_HOME,JRE_HOME,and PATH
3) downloaded/installed tomcat 7
4) started the server (./bin/startup.sh)
5) get proper messaged returned saying "Tomcat started"
6) checked catalina.out log file no exception is thrown
7) from the log file, "INFO: Server startup in 3244 ms"
8) i hit http://hostname:8080 from a browser to get to default page of tomcat server
9) problem loading page both in chrome/FF
我运行“netstat -nap | grep 8080”以确保进程正在启动侦听端口8080并且PID返回与从“ps -ef | grep tomcat”命令返回的PID匹配,我看到进程的脚印与tomcat关联服务器
我想知道我做错了什么......
答案 0 :(得分:0)
我必须通过iptables启用端口8080。