Я новичок в Linux, и я установил java и tomcat6 на centos 5.6, используя yum.
ссылка, которую я использовал для установки
Я также установил php, mysql и apcahe в моей системе.
apache port 80
mysql port 3306
tomcat port 8080
Все они в рабочем состоянии. Теперь, когда я запускаю службу tomcat, она успешно устанавливается, но я получаю следующее сообщение об ошибке в catalina.out:
[root@centos5 tomcat6]# /sbin/service tomcat6 restart
Stopping tomcat6: [ OK ]
Starting tomcat6: [ OK ]
[root@centos5 tomcat6]# cat /var/log/tomcat6/catalina.out
/sbin/runuser: warning: cannot change directory to /usr/share/tomcat5: No such file or directory
Mar 19, 2013 8:17:21 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Mar 19, 2013 8:17:21 AM org.apache.catalina.connector.Connector pause
SEVERE: Protocol handler pause failed
java.net.UnknownHostException: centos5: centos5
at java.net.InetAddress.getLocalHost(InetAddress.java:1426)
at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:490)
at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:288)
at org.apache.jk.server.JkMain.pause(JkMain.java:739)
at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
at org.apache.catalina.connector.Connector.pause(Connector.java:1138)
at org.apache.catalina.core.StandardService.stop(StandardService.java:578)
at org.apache.catalina.core.StandardServer.stop(StandardServer.java:788)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:662)
at org.apache.catalina.startup.Catalina.start(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Mar 19, 2013 8:17:22 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 19, 2013 8:17:22 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
/sbin/runuser: warning: cannot change directory to /usr/share/tomcat5: No such file or directory
Mar 19, 2013 8:17:23 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386/server:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/lib/i386:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
Mar 19, 2013 8:17:23 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 19, 2013 8:17:23 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 530 ms
Mar 19, 2013 8:17:24 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 19, 2013 8:17:24 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.36
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory sample
Mar 19, 2013 8:17:24 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 19, 2013 8:17:24 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 19, 2013 8:17:24 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/19 config=null
Mar 19, 2013 8:17:24 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 625 ms
Может ли кто-нибудь помочь мне в решении проблемы?