1. Xshell 4 (Build 0113) 
  2. Copyright (c) 2002-2012 NetSarang Computer, Inc. All rights reserved. 
  3.  
  4. Type `help' to learn how to use Xshell prompt. 
  5. Xshell:\>  
  6.  
  7. Connecting to 192.168.7.7:22... 
  8. Connection established. 
  9. To escape to local shell, press 'Ctrl+Alt+]'. 
  10.  
  11. Last login: Tue Sep 25 17:44:54 2012 from 192.168.7.2 
  12. [root@Cacti ~]# ulimit -n 
  13. 1024 
  14.  
  15. 系统优化_操作系统

  16. [root@Cacti ~]# vi /etc/security/limits.conf  
  17. # /etc/security/limits.conf 
  18.  
  19. 最后添加: 
  20. * soft nproc 11000 
  21. * hard nproc 11000 
  22. * soft nofile 65535 
  23. * hard nofile 65535 
  24. 保存后退出、重启。 
  25. "/etc/security/limits.conf" 55L, 1905C written                         
  26. [root@Cacti ~]# reboot 
  27.  
  28. Broadcast message from root@Cacti.Nagios 
  29.     (/dev/pts/0) at 9:22 ... 
  30.  
  31. The system is going down for reboot NOW! 
  32. [root@Cacti ~]#  
  33. Connection closed by foreign host. 
  34.  
  35. Type `help' to learn how to use Xshell prompt. 
  36. Xshell:\>  
  37.  
  38. Connecting to 192.168.7.7:22... 
  39. Connection established. 
  40. To escape to local shell, press 'Ctrl+Alt+]'. 
  41.  
  42. Last login: Wed Sep 26 09:21:01 2012 from 192.168.7.36 
  43. [root@Cacti ~]# ulimit -n 
  44. 65535