Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat not starting in linux ---permission denied to run startup.sh

I pasted tomcat folder in Linux machine. User is root . When I go to bin folder and execute ./startup.sh I'm getting an error:permission denied. [This is what I got]

How to rectify this issue.

png

like image 462
aswathy Avatar asked Aug 11 '16 10:08

aswathy


People also ask

How to create a shell script to restart Tomcat automatically in Linux?

Here are the steps to create a shell script to start, stop & restart tomcat automatically. 1. Create Shell Script Open terminal and run the following command to create shell script. 2. Add shell script to restart tomcat automatically Add the following lines to start, stop & restart tomcat automatically. Save and close the file.

How to start Tomcat on Linux boot?

To start tomcat on linux boot then below are primary steps: create symbolic link of tomcat in rc.d folders. Linux system will run all scripts defined in rc.d folders if you set the JAVA_HOME and CATALINA_HOME is bash_profile then you no need to set in /etc/init.d/tomcat script

Why is Tomcat not running in Linux?

Tomcat is known to face performance issues due to memory leaks, and interactive queries. So it is advisable to double check if Tomcat is still running after you issue stop command to its service, and manually kill the process if it is still running. 3. Make Shell Script Executable Run the following command to make shell script executable. 4.

How do I start or stop Apache Tomcat?

Apache Tomcat comes with startup scripts that you can use to start or stop the service. This method applies when you have an Apache Tomcat server installed as a binary release using a .zip or .tar archive. If so, start by navigating to the bin directory of the Apache Tomcat as:


1 Answers

give:

chmod -R 777 startup.sh

Then error will come as:Cannot find ./catalina.sh then give:

chmod -R 777 catalina.sh

Tomcat will start. the problem was because there was no permission for executing. u can see if permission is there or not by giving:

ls -l
like image 92
aswathy Avatar answered Sep 23 '22 19:09

aswathy