前言 背景:执行.sh的可执行文件,出现错误:bash: ./xxx.sh: 权限不够 解决方法 [root@idomyway]# ./xxx.sh bash: ./xxx.sh: 权限不够 [root@idomyway]# chmod 777 ./xxx.sh [root@idomyway]# ./xxx.sh 或者使用 chmod +x ./xxx.sh