嘿嘿嘿嘿iehiehei
刚买的云服务器
刚安装部署成功 nvm git vue node mongodb
结果删库跑路了
事故现场
git pull 出了点冲突
所以我想删除 /home/wwwroot/book/ 下的所有文件
再 pull 一下
没想到手快 rm -rf /* (hahhaha,都怪经常看到这样的文章)
然后就出现了
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
cannot remove xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
我去,这路径明显不对啊
快速 ctrl + c 结束
然后
好熟悉呀
今年 5 月份刚看过一篇 rm -rf /* 的公众号推文
只记得一定不要 exit 断开 ssh 连接
否则可能就连不上了
当转念一想,反正也是刚买的服务器,怕什么
exit Enter
open putty(ssh tool)
heihiehehiehieheiheieh
因为没有重要数据
所以停止实例(一直显示 ‘停止中’ 大概有10 分钟才停止),重装操作系统就好了,(小时候经常把家里的 win 搞坏,我爸不得不带着机箱找人重装)
放一下几个月前看得推文吧,open。
又看了一遍。
希望下次不要用上。
heiheiehieheiheiehiehiehei
还好我的个人网站每日 4:00 都自动创建快照
我记得有人说过这种命令阿里云有限制,怎么没有?
还可以把 rm -rf /* 替换成移动文件操作,代替删除命令;