Some executable files under Linux, such as. Sh ending, etc;
If we want to run such a file, we need to add an executable permission to the file;
Otherwise, this file cannot be executed.
We use VI to build a tomcat.sh File, command ll view
You can see here that there is no executable permission.
Next, we need to use the Chmod command. Let’s take a look at the help information of the Chmod command.
Enter Chmod — H
to enter Chmod — H
Then we add the executable permission
Chmod 777 tomcat.sh
In executing the LL command, make a comparison with before
Then it’s ready to run
Read More:
- Clion automatically adds add_ executable
- Alpine Linux executable file crash report error / lib / x86 not found_ 64 Linux GNU / libc.so solution
- Python uses cxfree to package script files into executable programs
- Prompt when executing sh file in Linux: nohup: unable to run command “. / startup. Sh”: insufficient permissions
- Delete files with specified suffix in specified folder under Linux
- Batch rename files on MAC (add prefix and suffix)
- Error messages of copying files to Linux system by PSCP in Windows operating system
- Linux Tomcat accessing files on the server
- Cannot read configuration file due to insufficient permissions
- Linux_ day07_ 05_ Configure common add, delete, modify and query commands in network
- Grep finds all files containing a string in Linux
- Linux shell RM deletes all. O suffix files in the subdirectory
- Mac USB error 3: Unable to claim interface: Access denied (insufficient permissions)
- Removing duplicate lines from Linux shell files
- Add Samba user prompt failed to add entry for user
- Find files with suffix. Sh under Linux
- Add samba user prompt Failed to add entry for user.
- The current user does not have write permissions to the target environment.
- Go compiles the EXE executable to remove the CMD window at run time
- CONDA error notwritableerror: the current user does not have write permissions