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

第一步查看/etc/profile:

第二步修改 /root/.bash_profile:
末尾添加命令的路径

第三步 shell脚本修改:
#!/bin/bash . /etc/profile . /root/.bash_profile
脚本中添加内容如下:

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
linux定时任务出现command not found解决办法

第一步查看/etc/profile:

第二步修改 /root/.bash_profile:
末尾添加命令的路径

第三步 shell脚本修改:
#!/bin/bash . /etc/profile . /root/.bash_profile
脚本中添加内容如下:

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

2023-02-22
9万阅读

2023-02-12
6万阅读

2023-02-11
9万阅读

2023-02-03
2万阅读

2023-02-03
3万阅读

2023-01-19
12万阅读

2023-01-17
3万阅读

2023-01-17
3万阅读

2023-01-14
3万阅读

2023-01-11
2万阅读

2023-02-22
9万阅读

2023-02-12
6万阅读

2023-02-11
9万阅读

2023-02-03
2万阅读

2023-02-03
3万阅读

2023-01-19
12万阅读

2023-01-17
3万阅读

2023-01-17
3万阅读

2023-01-14
3万阅读

2023-01-11
2万阅读