centos cron 自动执行脚本异常 命令不生效的解决办法

办法:

1、sh脚本加入 source /etc/profile

 

2、非系统命令,要写绝对路径

 

posted @ 2019-01-10 10:58  庞国明  阅读(1336)  评论(0编辑  收藏  举报