1.原因是.sh文件没有执行权限 通过chmod +x xxx.sh ,这样就变成绿色了 2.linux文件颜色与读写权限的关系: chmod 755 file 绿色 chmod 644 file 白色