[root@sakura xiangpeng]# ./test.sh
bash: ./test.sh: 权限不够
[root@sakura xiangpeng]# chmod 777 ./test.sh
[root@sakura xiangpeng]# ./test.sh
hello world
或者使用
chmod +x ./test.sh
[root@sakura xiangpeng]# ./test.sh
bash: ./test.sh: 权限不够
[root@sakura xiangpeng]# chmod 777 ./test.sh
[root@sakura xiangpeng]# ./test.sh
hello world
或者使用
chmod +x ./test.sh