tomcat 配置执行权限

Error running Unnamed: Cannot run program "安装路径/apache-tomcat-8.5.20/bin/catalina error=13 permission denied

 cd apache-tomcat-8.5.20
 cd bin
 ls -l
chmod  u+x *.sh u+x  当前用户付上执行权限
chmod  a+x *.sh u+x  
chmod  777 *.sh u+x

看到sh文件 都为-rwxr-xr-x 这时候就oke l

-rwxr-xr-x@ 1 sirai  staff    1902 Aug  2 22:36 shutdown.sh
-rw-r--r--@ 1 sirai  staff    2022 Aug  2 22:36 startup.bat
-rwxr-xr-x@ 1 sirai  staff    1904 Aug  2 22:36 startup.sh
-rw-r--r--@ 1 sirai  staff   48136 Aug  2 22:36 tomcat-juli.jar
-rw-r--r--@ 1 sirai  staff  399836 Aug  2 22:36 tomcat-native.tar.gz
-rw-r--r--@ 1 sirai  staff    3621 Aug  2 22:36 tool-wrapper.bat
-rwxr-xr-x@ 1 sirai  staff    4579 Aug  2 22:36 tool-wrapper.sh
-rw-r--r--@ 1 sirai  staff    2026 Aug  2 22:36 version.bat
-rwxr-xr-x@ 1 sirai  staff    1908 Aug  2 22:36 version.sh

你可能感兴趣的:(tomcat 配置执行权限)