1.问题描述
linux打开/运行某文件,报错--bash权限不够
2.案例
访问apache-tomcat-9.0.82/bin目录下的./version.sh
[root@localhost bin]# ./version.sh
-bash: ./version.sh: 权限不够
解决方法:先查看资源的路径pwd
给该路径加权限(chmod)
chmod a+x /usr/local/apache-tomcat-9.0.82/bin/*
最后在访问./version.sh(不会报错)
版权归原作者 阿里嘎多f 所有, 如有侵权,请联系我们删除。