使用crontab定时任务执行脚本不生效解决方法

不废话,直接撸; 一、首先确定脚本文件是否有可执行权限; 1、./xxx.sh 报没有权限; 2、使用chmod 777 XXX.sh执行报错,changing permissions of`XXXXXX` Operation not permitted; 3、解决2中的问题:sudo chattr -i  xxx.sh 提示输入服务器密码;root'Password: 4、输入成功后,执行sud
相关文章
相关标签/搜索