VPS侦探论坛

标题: 急急急,求祖宗们帮忙 [打印本页]

作者: medivh    时间: 2019-11-4 09:31
标题: 急急急,求祖宗们帮忙
公司的服务器是使用lnmp一键安装的,我装扩展半天没装上去,我就想重新重装环境得了,在网上找教程删除,lnmp的安装包早不见了踪影,我就从新下载了1.5的安装包,从安装包中,找到了,uninstall.sh 命令,执行完成了。

执行完了之后,我才想起来,我数据库没有备份,现在连服务器都登录不上去了,求祖宗们帮忙啊,数据真的很重要的;有提示:
  1. Stoping LNMPA...
  2. ./uninstall.sh: line 114: lnmp: command not found
  3. ./uninstall.sh: line 115: lnmp: command not found
  4. Deleting iptables rules...
  5. iptables: Bad rule (does a matching rule exist in that chain?).
  6. iptables: Bad rule (does a matching rule exist in that chain?).
  7. iptables: Bad rule (does a matching rule exist in that chain?).
  8. iptables: Bad rule (does a matching rule exist in that chain?).
  9. Removing nginx service at system startup...
  10. Note: Forwarding request to 'systemctl disable nginx.service'.
  11. Removed symlink /etc/systemd/system/multi-user.target.wants/nginx.service.
  12. error reading information on service nginx: No such file or directory
  13. Removing httpd service at system startup...
  14. error reading information on service httpd: No such file or directory
  15. error reading information on service httpd: No such file or directory
  16. Removing mysql service at system startup...
  17. error reading information on service mysql: No such file or directory
  18. error reading information on service mysql: No such file or directory
  19. Backup mysql databases directory to /root/databases_backup_20191101150107
  20. Connection reset by 140.143.228.28 port 22
复制代码



作者: medivh    时间: 2019-11-4 09:32
:'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
作者: medivh    时间: 2019-11-4 12:58
root下面 没有 /root/databases_backup_20191101150107 这个文件
作者: 1lx570    时间: 2019-11-4 15:08
用WinSCP登录,看看/usr/local/mysql/var/ 路径下面有没有,有的话,直接文件夹全部下载就可以了
作者: medivh    时间: 2019-11-4 16:28
1lx570 发表于 2019-11-4 15:08
用WinSCP登录,看看/usr/local/mysql/var/ 路径下面有没有,有的话,直接文件夹全部下载就可以了 ...

这个目录都没有了
作者: licess    时间: 2019-11-4 17:42
卸载都会自动保存数据库目录,你发的上面最后都有明确提示的备份目录位置
远程连不上的话建议通过vps的vnc、console之类的进行连接查看,有可能是iptables被删除了
作者: medivh    时间: 2019-11-4 18:11
licess 发表于 2019-11-4 17:42
卸载都会自动保存数据库目录,你发的上面最后都有明确提示的备份目录位置
远程连不上的话建议通过vps的vnc ...

有提示 有这个  /root/databases_backup_20191101150107文件,可是我登录上去的时候没有这个文件

作者: medivh    时间: 2019-11-4 18:28
licess 发表于 2019-11-4 17:42
卸载都会自动保存数据库目录,你发的上面最后都有明确提示的备份目录位置
远程连不上的话建议通过vps的vnc ...

如果是被iptables删除了删除了,如何恢复呢
作者: yanqzh    时间: 2019-11-4 18:51
medivh 发表于 2019-11-4 18:28
如果是被iptables删除了删除了,如何恢复呢

整台服务器有备份的吧。现在一般云服务器都有快照备份,联系主机商看看吧
作者: licess    时间: 2019-11-5 10:59
medivh 发表于 2019-11-4 18:28
如果是被iptables删除了删除了,如何恢复呢

https://www.vpser.net 上搜索 iptables 重新添加iptables规则或直接停掉iptables




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4