Bootstrap

linux中tomcat无权限执行问题

一般来说tomcat安装按以下步骤来即可:
1.下载tomcat
2.使用xftp上传tomcat压缩包
3.解压tomcat : tar -zxvf apache-tomcat-9.0.22.tar.gz (不同后缀名的解压命令不同)
4.启动tomcat测试! ./xxx.sh脚本即可运行
执行:./startup.sh
停止:./shutdown.sh

但是我的tomcat执行startup.sh文件时,先是出现了Permission denied, 后来又成了

The file is absent or does not have execute permission
This file is needed to run this program

这个时候的执行文件也是白色的,而不是绿色的。后来发现这是执行权限的问题!

解决方法:输入chmod 777 startup.sh 命令。
在这里插入图片描述
发现startup.sh文件已经变成了绿色,但是执行时,发现还是有问题!出现了

Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

;