简体   繁体   English

-bash: /usr/local/cpanel/3rdparty/bin/perl: 没有那个文件或目录 - linux 服务器崩溃了

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

My VPS Server (CPanel) got full so I decided to delete some files, namely the following我的 VPS 服务器(CPanel)已满所以我决定删除一些文件,即以下

ssh root@server_ip_address ssh 根@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

When I deleted the first two files it did free up some 4GB of space the disk was showing 85% occupied.当我删除前两个文件时,它确实释放了一些 4GB 的空间,磁盘显示已占用 85%。 Then I deleted the tmpDSK file (1.06GB) but it had no impact on disk size.然后我删除了 tmpDSK 文件(1.06GB),但它对磁盘大小没有影响。 After some half, an hour or so, our server crashed and it won't serve pages.大约半小时后,我们的服务器崩溃了,无法提供页面。 It is up though and I can ping it but pages are not served.虽然它已经启动,我可以 ping 它,但不提供页面。

What I noticed right away after I deleted tmpDSK, the user/local/ folder was missing (got deleted by mistake?) which contains Apache, Perl etc and hence the reason web sites are not being served.我在删除 tmpDSK 后立即注意到,用户/本地/文件夹丢失(被错误删除?)其中包含 Apache、Perl 等,因此无法提供网站服务。

Just now I logged in to the server via SSH and I got the following messages刚才我通过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

I am wondering, what possibly happened.我想知道,可能发生了什么。 Can I restore things myself, we do have a backup on the external drive ?我可以自己恢复我们在外部驱动器上有备份吗? Is there a way deleted files can be restored?有没有办法恢复被删除的文件? I deleted them from sftp, one by one.我从sftp中一一删除。 There is already a ticket opened with the host provider, but I want to understand things myself better and see if I can restore it somehow.已经向主机提供商打开了一张票,但我想自己更好地了解事情,看看我是否可以以某种方式恢复它。 Note none of the Linux commands works on SSH, like ls etc. Also tmpDSK is supposed to be cPanel related where it store sessions, temporary files请注意,没有任何 Linux 命令可在 SSH 上运行,例如 ls 等。此外,tmpDSK 应该与 cPanel 相关, 它存储会话、临时文件的位置

Thanks谢谢

Answering myself回答我自己

After more than 24 hours of troubleshooting with the host, and then personally researching we found the issue was very trivial.经过与主机超过 24 小时的故障排除,然后我们亲自研究我们发现问题非常简单。

We accidentally moved the contents of /usr/local/ folder to /usr/include which cause all the problems.我们不小心将/usr/local/文件夹的内容移动到了/usr/include ,这导致了所有问题。 Simply moving it back fixed the problem.只需将其移回即可解决问题。

The content was moved unexpectedly when working with server with FTP (sftp).使用带有 FTP (sftp) 的服务器时,内容被意外移动。 It likely had nothing to do with the three deleted files that I had deleted.它可能与我删除的三个已删除文件无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM