一秒内最大连接数
/etc/xinetd.conf中cps, instances, per_source由50改为1000,
重启服务: sudo /etc/init.d/xinetd restart
用户可发起的最大进程数
/etc/security/limits.d/90-nproc.conf,将1024改为了10240;
查询godu用户当前发起的进程数:ps -L -u godu|wc -l
Ref: http://timsvirtualworld.com/2013/03/increasing-number-of-processes-allowed-to-be-run-by-a-user-on-rhel-centos-6/
用户级连接限制数
/etc/security/limits.conf增加:
godu soft nofile 10000 godu hard nofile 10000
验证方法:ulimit -Hn, ulimit -Sn
修改后需要重登录才能生效;
Ref: Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)
另:主机名定义
修改/etc/hosts
增加:10.0.2.49 bocoty49
验证:ping bocoty49
修改后即时生效,不需要重登录;
Ref: Linux操作系统下/etc/hosts文件配置方法