Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (18.4k points)
edited by

I am trying to install

   1.yum install -zxvf apache-tomcat-6.0.47.tar.gz then 

   2.  export TOMCAT_HOME=/home/mpatil/softwares/apache-tomcat-6.0.37

   3. [root@localhost mpatil]# echo $TOMCAT_HOME 

      /home/mpatil/softwares/apache-tomcat-7.0.47

while starting tomcat by using this command

4.[root@localhost mpatil]# /startup.sh 

bash: /startup.sh: No such file or directory 

I have no idea why it showing like this.

my file in

  5.[root@localhost mpatil]#  find /home -type f -name   apache-tomcat-6.0.37.tar.gz

/home/mpatil/Downloads/apache-tomcat-6.0.37.tar.gz

Whatever I have tried before is correct or not?

1 Answer

0 votes
by (36.8k points)

The command you've got typed is /startup.sh, if you've got to start out a shell script you've got to fireside the command as shown below:

$ cd /home/mpatil/softwares/apache-tomcat-7.0.47/bin

$ sh startup.sh

or

$ ./startup.sh

Please try that, you furthermore may need to attend your tomcat's bin-folder (by using the cd-command) to execute this shell script. In your case this is /home/mpatil/softwares/apache-tomcat-7.0.47/bin.

To know about Linux join the Linux training

Related questions

0 votes
1 answer
0 votes
1 answer
asked Dec 24, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Nov 18, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Nov 28, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Feb 3, 2021 in Linux by blackindya (18.4k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...