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.
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