I have installed geoserver binary and tomcat8 in /opt on centos 6.6. My problem is, I can run geoserver only when I stop the tomcat service. How do I resolve the issue and start both on booting the system.
-
change the port number of one or the other, or use the Geoserver.war in tomcat– Ian TurtonCommented Oct 2, 2015 at 10:44
-
tomcat is not deploying the geoserver.war. how to do so?– TaraCommented Oct 2, 2015 at 13:01
-
Read the instructions– Ian TurtonCommented Oct 2, 2015 at 13:16
-
Hi I got the issue resolved by editing the tomcat server.xml file changin the port no to 80 as shown below, previously it ws 8080. By doing this tomcat uses 80 and geoserver will use 8080, so the conflict is resolved <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> <!-- A "Connector" using the shared thread pool--> <!-- <Connector executor="tomcatThreadPool" port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />– TaraCommented Oct 9, 2015 at 12:45
-
To start geoserver on boot goto /etc and vi rc.local and add the following(Geoserver installation folder with the startup.sh path) which specifies the JAVA_HOME and GEOSERVER_HOME for the boot up and save the file. This starts the geoserver on boot. export JAVA_HOME=/usr export GEOSERVER_HOME=/opt/geoserver/ /opt/geoserver/bin/startup.sh– TaraCommented Oct 9, 2015 at 12:55
2 Answers
Hi I got the issue resolved by editing the tomcat server.xml file changin the port no to 80 as shown below, previously it ws 8080. By doing this tomcat uses 80 and geoserver will use 8080, so the conflict is resolved
To start geoserver on boot goto /etc and vi rc.local and add the following(Geoserver installation folder with the startup.sh path) which specifies the JAVA_HOME and GEOSERVER_HOME for the boot up and save the file. This starts the geoserver on boot.
export JAVA_HOME=/usr export GEOSERVER_HOME=/opt/geoserver/ /opt/geoserver/bin/startup.sh