linux - -bash :/usr/local/cpanel/3rdparty/bin/perl: No such file or directory - linux server kind of crashed

标签 linux server crash cpanel bluehost

我的 VPS 服务器(CPanel)已满,因此我决定删除一些文件,即以下文件

ssh root@server_ip_address

MB(space)      File Location
2583    /home/someuser/tmp/analog/cache       <-------------1
1883    /home/someuser/tmp/analog/cache.out   <-------------2
1061    /usr/tmpDSK <------------3

当我删除前两个文件时,它确实释放了一些 4GB 的空间,磁盘显示已占用 85%。然后我删除了 tmpDSK 文件(1.06GB),但它对磁盘大小没有影响。大约半个小时、一个小时左右后,我们的服务器崩溃了,无法提供页面。虽然它已经启动,我可以 ping 它,但页面未提供服务。

删除 tmpDSK 后我立即注意到,user/local/文件夹丢失了(被错误删除?),其中包含 Apache、Perl 等,因此网站无法提供服务。

刚才我通过 SSH 登录服务器,收到以下消息

-bash: /usr/local/cpanel/3rdparty/bin/perl: No such file or directory
-bash: /usr/local/cpanel/3rdparty/bin/perl: No such file or directory
-bash: /usr/local/cpanel/3rdparty/bin/perl: No such file or directory

我想知道,可能发生了什么。我可以自己恢复内容吗,我们在外部驱动器上有备份?有没有办法恢复已删除的文件?我把它们从sftp上一一删除了。已经与主机提供商开了一张票,但我想自己更好地了解事情,看看是否可以以某种方式恢复它。请注意,Linux 命令都不能在 SSH 上运行,例如 ls 等。另外 tmpDSK 应该与 cPanel 相关,其中 it store sessions, temporary files

谢谢

最佳答案

回答我自己

经过超过 24 小时与主机进行故障排除,然后亲自研究,我们发现问题非常微不足道。

我们不小心将 /usr/local/ 文件夹的内容移动到 /usr/include ,这导致了所有问题。只需将其移回即可解决问题。

使用 FTP (sftp) 服务器时,内容被意外移动。它可能与我删除的三个删除文件无关。

关于linux - -bash :/usr/local/cpanel/3rdparty/bin/perl: No such file or directory - linux server kind of crashed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55015709/

相关文章:

android - Cordova Android 崩溃回溯

.net - 可以防止子 AppDomains 中未处理的异常使主进程崩溃吗?

sql - 删除损坏的 postgreSQL 表

linux - 将不同的 docker 容器路径绑定(bind)到单个命名卷

c++ - 错误 : ____ was not declared in this scope

eclipse - 无法在 Eclipse 中安装 Oracle Weblogic Server 工具

linux - Freeradius-代理不会转发到另一个家庭服务器

crash - 断电后RabbitMQ无法启动

c - 在 C 中从设备名称获取硬盘可用空间

android - 如何使用android studio将android应用程序的数据发布到服务器