达到打开文件限制后如何重新启动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$
答案 0 :(得分:0)
通过蛮力解决。 我发现,我仍然可以执行kill命令(不是kilall。killall引发错误),但是找不到错误的进程(ps引发错误)。 我准备了具有数千个具有连续进程号的kill命令的脚本-并且我杀死了有问题的进程!