tomcat7.0+mysql5.5 安装
整个安装花费了一天的时间 现在mysql已经安装完成 现在就剩下tomcat还无法运行
tomcat出现的问题是
[root@javaserpzm bin]# ./startup.sh
Using CATALINA_BASE: /server/tomcat/apache-tomcat-7.0.14
Using CATALINA_HOME: /server/tomcat/apache-tomcat-7.0.14
Using CATALINA_TMPDIR: /server/tomcat/apache-tomcat-7.0.14/temp
Using JRE_HOME: /usr/java/jdk1.6.0_25/bin
Using CLASSPATH: /server/tomcat/apache-tomcat-7.0.14/bin/bootstrap.jar:/server/tomcat/apache-tomcat-7.0.14/bin/tomcat-juli.jar
然后我在去查看端口
[root@javaserpzm bin]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:935 *:* LISTEN
tcp 0 0 *:sunrpc *:* LISTEN
tcp 0 0 localhost.localdomain:ipp *:* LISTEN
tcp 0 0 *:mysql *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
udp 0 0 *:929 *:*
udp 0 0 *:932 *:*
udp 0 0 *:53603 *:*
udp 0 0 *:mdns *:*
udp 0 0 *:sunrpc *:*
udp 0 0 *:ipp *:*
udp 0 0 *:38702 *:*
udp 0 0 *:mdns *:*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 10299 @/tmp/fam-root-
unix 2 [ ACC ] STREAM LISTENING 9637 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 9048 /var/run/cups/cups.sock
unix 2 [ ACC ] STREAM LISTENING 7914 @/var/run/hald/dbus-oYDXi0GL9N
unix 2 [ ACC ] STREAM LISTENING 9804 /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 7913 @/var/run/hald/dbus-DPjToDNNZD
unix 2 [ ACC ] STREAM LISTENING 9296 /server/tmp/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 9367 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 6701 /var/run/setrans/.setrans-unix
unix 2 [ ACC ] STREAM LISTENING 7065 /var/run/audispd_events
unix 2 [ ACC ] STREAM LISTENING 7617 /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 7710 /var/run/sdp
unix 2 [ ACC ] STREAM LISTENING 7824 /var/run/pcscd.comm
unix 2 [ ACC ] STREAM LISTENING 7869 /var/run/acpid.socket
发现没有 8080 的端口
另外我在其他电脑上输入http://ip:8080 显示的是无法打开网页 肯定没有启动tomcat iptables已经关闭
现在我有不知道那里出现问题
请高手帮忙
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
检查下日志,看看什么地方出错了.
另外,关闭下selinux看看,用setenforce 0暂时关闭
selinux 倒是关闭了 那个tomcat的日志我给沾下
[root@javaserpzm logs]# more catalina.out
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0
_25/jer/lib/bin/java: 没有那个文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0
_25/jer/lib/bin/java: 没有那个文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0
_25/jer/lib/bin/java: 没有那个文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/lib:/usr/java/jdk1.6.0
_25/jer/lib/bin/java: 没有那个文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
/server/tomcat/apache-tomcat-7.0.14/bin/catalina.sh: line 381: /usr/java/jdk1.6.0_25/bin/bin/java: 没有那个
文件或目录
这个应该是关键,检查下
本帖最后由 officemysql 于 2011-05-31 17:24 编辑
日志那里面的问题解决了 是我在profile文件里写多了内容
正确的内容如下
export JAVA_HOME=/usr/java/jdk1.6.0_25
export CATALINA_HOME=/server/tomcat/apache-tomcat-7.0.14
export CATALINA_BASE=/server/tomcat/apache-tomcat-7.0.14
现在写入./statup.sh 还是那个样子
但是写入 ./shutdown.sh 返回的内容我郁闷
[root@javaserpzm bin]# ./shutdown.sh
Using CATALINA_BASE: /server/tomcat/apache-tomcat-7.0.14
Using CATALINA_HOME: /server/tomcat/apache-tomcat-7.0.14
Using CATALINA_TMPDIR: /server/tomcat/apache-tomcat-7.0.14/temp
Using JRE_HOME: /usr/java/jdk1.6.0_25
Using CLASSPATH: /server/tomcat/apache-tomcat-7.0.14/bin/bootstrap.jar:/server/tomcat/apache-tomcat-7.0.14/bin/tomcat-juli.jar
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:217)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:406)
[root@javaserpzm bin]# ./setclasspath.sh
The BASEDIR environment variable is not defined
This environment variable is needed to run this program
使用这个出现的问题
这个你就得问谷歌了