1.错误原因:

 这是因为对*.sh文件的读、写、运行权限不足;

-bash-4.2$ ./server.sh
-bash: ./server.sh: 权限不够

2.解决方案:

chmod 777 ./*.sh

-bash-4.2$ chmod 777 ./*.sh