crontab执行脚本与手动执行结果不一致时间:2023-03-09 19:49:50 反正网上说是环境变量问题,我就直接在脚本第二行加入以下代码: source /etc/profile source ~/.bashrc 问题是解决了!