I have installed tomcat 9 on CentOS 7, location is /opt/tomcat
. It works. But when I wanted to shut it down and to start it again when I used shutdown.sh
in my /opt/tomcat/bin
folder, I got the error:
Cannot find /usr/local/tomcat/bin/setclasspath.sh
There is no tomcat folder there. when I use echo $CATALINA_HOME
it points to the same /usr/local/tomcat
. I've read somewhere that I should change CATALINA_HOME
variable in my .bash_profile
, should I do that? I can't find that file anywhere.
Do I need to set the environment variable of CATALINA_HOME and how I can do that in Centos?