E45: 'readonly' option is set (add ! to override)错误解决

E45: 'readonly' option is set (add ! to override)错误解决

可以使用 sudo vim  打开文件 再 wq 即可 !

例如 :sudo vim /etc/crontab 

# 拍卖发送消息
* * * * * root  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 5;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 10;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 15; curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 20;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 25;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 30;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 35;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 40;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 45;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 50;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null
* * * * * root sleep 55;  curl -L 'http://www.baidu.com/index.php?module=yipin&act=wap_paimai&op=transcend' &> /dev/null

你可能感兴趣的:(linux,vim,linux,vim)