当前位置: 技术问答>linux和unix
RedHat 127.0.0.1:8080联系时,连接被拒绝
来源: 互联网 发布时间:2016-10-04
本文导语: 如题,也不知道问题出在哪儿,只能把所有的信息都贴出来了,请高手指点! jdk安装后测试显示信息为: #java -version java version "1.3.1" jdkgcj 0.2.3(http://www.arklinux.org/projects/jdkgcj) gcj(COC)3.2.2 20030222 (Red Hat Linux 3.2.2-5)...
如题,也不知道问题出在哪儿,只能把所有的信息都贴出来了,请高手指点!
jdk安装后测试显示信息为:
#java -version
java version "1.3.1"
jdkgcj 0.2.3(http://www.arklinux.org/projects/jdkgcj)
gcj(COC)3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation,Inc.
This is free software;see the source for copying conditions.There is NO
warranty;not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
tomcat解压后启动显示信息为:
#/usr/local/apache-tomcat-6.0.29/bin/startup.sh
Using CATALINA_BASE:/usr/local/apache-tomcat-6.0.29
Using CATALINA_HOME:/usr/local/apache-tomcat-6.0.29
Using CATALINA_TMPDIR:/usr/local/apache-tomcat-6.0.29/temp
Using JRE_HOME:/usr
Using CLASSPATH:/usr/local/apache-tomcat-6.0.29/bin/bootstrap.jar
配置信息为:
/etc/profile文件中最后几行的信息:
PATH=$PATH:/usr/java/jdk1.6.0_21
export PATH
JAVA_HOME=/usr/java/jdk1.6.0_21
export JAVA_HOME
CATALINA_HOME=/usr/local/apache-tomcat-6.0.29
export CATALINA_HOME
jdk安装后测试显示信息为:
#java -version
java version "1.3.1"
jdkgcj 0.2.3(http://www.arklinux.org/projects/jdkgcj)
gcj(COC)3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 Free Software Foundation,Inc.
This is free software;see the source for copying conditions.There is NO
warranty;not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
tomcat解压后启动显示信息为:
#/usr/local/apache-tomcat-6.0.29/bin/startup.sh
Using CATALINA_BASE:/usr/local/apache-tomcat-6.0.29
Using CATALINA_HOME:/usr/local/apache-tomcat-6.0.29
Using CATALINA_TMPDIR:/usr/local/apache-tomcat-6.0.29/temp
Using JRE_HOME:/usr
Using CLASSPATH:/usr/local/apache-tomcat-6.0.29/bin/bootstrap.jar
配置信息为:
/etc/profile文件中最后几行的信息:
PATH=$PATH:/usr/java/jdk1.6.0_21
export PATH
JAVA_HOME=/usr/java/jdk1.6.0_21
export JAVA_HOME
CATALINA_HOME=/usr/local/apache-tomcat-6.0.29
export CATALINA_HOME
|
2.#/usr/local/apache-tomcat-6.0.29/bin/startup.sh不能保证tomcat启动成功吗?启动后的信息如上所示
---------------
启动脚本并不能保证100%启动成功 很容易确认嘛 你就确认下咯 看看端口是否在监听
lsof i:8080
我让你关防火墙 你关了没啊
---------------
启动脚本并不能保证100%启动成功 很容易确认嘛 你就确认下咯 看看端口是否在监听
lsof i:8080
我让你关防火墙 你关了没啊
|
1.tomcat启动成功了吗?
lsof -i:8080
2.吧防火墙关闭试试 /etc/init.d/iptables stop
lsof -i:8080
2.吧防火墙关闭试试 /etc/init.d/iptables stop
|
3.如果还不行 关闭selinux
/etc/sysconfig/selinux
SELINUX=enforcing
改成
SELINUX=disabled
然后执行一下 setenforce 0