手动执行脚本可以运行,crontab自动执行无效的解决方法

在需要执行的脚本里加入环境变量即可,如下图:

猜你喜欢

转载自www.cnblogs.com/phperlinxinlan/p/10330887.html