【发布时间】:2018-10-02 19:57:09
【问题描述】:
当达到打开文件限制时,如何重新启动 ubuntu 服务器?
我可以通过 ssh 登录,但大多数我尝试的每个命令都以错误响应:
-bash-4.3$ killall node
-bash: start_pipeline: pgrp pipe: Too many open files in system
-bash: /usr/bin/killall: Too many open files in system
-bash-4.3$ shutdown -r now
-bash: start_pipeline: pgrp pipe: Too many open files in system
-bash: /sbin/shutdown: Too many open files in system
-bash-4.3$ reboot
-bash: start_pipeline: pgrp pipe: Too many open files in system
-bash: /sbin/reboot: Too many open files in system
-bash-4.3$ sudo su -
-bash: start_pipeline: pgrp pipe: Too many open files in system
-bash: /usr/bin/sudo: Too many open files in system
-bash-4.3$
【问题讨论】:
-
您是否考虑过修复泄漏文件句柄的应用程序或增加可以打开的文件数量? superuser.com/questions/1200539/…
-
谢谢,我知道如何解决它。但问题是如何停止不良进程。
-
如果您无法以 root 身份登录并使用
kill或kill -9终止进程或执行shutdown,那么剩下的唯一东西就是电源按钮了。 -
试试
/sbin/init 6