Apache startupp error

I am getting error after starting apache tomcat and trying to curl on 8081

thor@host01 /opt/apache-tomcat-8/bin$ sudo /opt/apache-tomcat-8/bin/startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-8
Using CATALINA_HOME:   /opt/apache-tomcat-8
Using CATALINA_TMPDIR: /opt/apache-tomcat-8/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /opt/apache-tomcat-8/bin/bootstrap.jar:/opt/apache-tomcat-8/bin/tomcat-juli.jar
Using CATALINA_OPTS:   
Tomcat started.


thor@host01 /opt/apache-tomcat-8/bin$ curl localhost:8081; ps -ef | grep tomcat
curl: (7) Failed to connect to ::1: Cannot assign requested address
thor       330     1  0 08:21 pts/1    00:00:04 /usr/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /opt/apache-tomcat-8/bin/bootstrap.jar:/opt/apache-tomcat-8/bin/tomcat-juli.jar -Dcatalina.base=/opt/apache-tomcat-8 -Dcatalina.home=/opt/apache-tomcat-8 -Djava.io.tmpdir=/opt/apache-tomcat-8/temp org.apache.catalina.startup.Bootstrap start
thor       464   277  0 08:23 pts/1    00:00:00 grep --color=auto tomcat
thor@host01 /opt/apache-tomcat-8/bin$

[SOLVED]

I had not changed the port number in config file.
Its working now

Thanks for your confirmation.

1 Like