命令行下面: 1.chmod 空格"+x" 空格 你的sh文件名 (+x是一个整体,不要拆开) 2.输入"./你的sh文件名" 即可执行 举例: 1 chmod +x helloworld.sh 2 ./helloworld.sh