简体   繁体   中英

Error while installing Tomcat in CentOS

I tried to install a Tomcat servlet container in my CentOS machine and I'm getting some errors.

I succeeded doing

tar -zxvf apache-tomcat-7.0.47.tar.gz

But I failed executing:

 [root@localhost mpatil]# mv apache-tomcat-7.0.47 uportal-tomcat
 [root@localhost mpatil]# export JAVA_HOME=/path/to/your/java
 [root@localhost mpatil]# export TOMCAT_HOME=/path/to/your/tomcat
 [root@localhost mpatil]# $TOMCAT_HOME/bin/startup.sh
 bash: /path/to/your/tomcat/bin/startup.sh: No such file or directory

did you actually export the paths you wrote in your post? These are just example paths and unless you created these directories and put your java/tomcat there they won't work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM