1.问题描述

linux打开/运行文件报错bash权限不够

2.案例

访问apachetomcat-9.0.82/bin目录下的./version.sh

[root@localhost bin]# ./version.sh
bash: ./version.sh: 权限不够

解决方法:先查看资源路径pwd

给该路径权限chmod

chmod a+x /usr/local/apachetomcat-9.0.82/bin/*

最后在访问./version.sh(不会报错)

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注