当前位置: 移动技术网 > 网络运营>服务器>Linux > linux定时任务出现command not found解决办法

linux定时任务出现command not found解决办法

2017年12月08日  | 移动技术网网络运营  | 我要评论

 linux定时任务出现command not found解决办法

这里写图片描述

第一步查看/etc/profile:
这里写图片描述

第二步修改 /root/.bash_profile:
这里写图片描述
末尾添加命令的路径
这里写图片描述

第三步 shell脚本修改:

#!/bin/bash

. /etc/profile
. /root/.bash_profile

脚本中添加内容如下:

这里写图片描述

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网