方式一:./xx.sh 通过 . 方式,要先设置xx.sh可执行 chmod +x xx.sh 方式二:sh xx.sh 转载于:https://www.cnblogs.com/znsongshu/p/9761693.html