kill一组进程

1
ps -ef|grep python|grep -v grep|cut -c 9-16|xargs kill -15

默认编码

报错:

1
2
3
WARNING! The remote SSH server rejected X11 forwarding request.
Last login: Fri Jul 30 16:31:01 2021 from 192.168.1.46
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

解决:

1
localedef -i en_US -f UTF-8 en_US.UTF-8

进程数不够

非root用户登录报:

1
/bin/bash: Resource temporarily unavailable。

用root修改/etc/security/limits.d/20-nproc.conf,将4096改成65536