1.   查看linux系统版本号 cat /etc/issue    查看到所有的linux机器为 CentOS release 5.5 (Final)

2.    按照linux5.x的修改方法进行修改:

       a.  root用户登录,修改系统参数数配置,vi /etc/sysctl.conf

       kernel.msgmax=65536(修改的参数)

       fs.file-max = 65536 (新增的参数)

        修改完后运行  sysctl -p 命令使参数立即生效。

  b.     root用户修改 vi/etc/security/limits.conf 在末尾增加如下配置后,重新登录系统。

       * soft nproc 65536

       * hard nproc 65536
        * soft nofile 65536

       * hard nofile 65536 

  c.    使用普通用户 cisco 登录系统执行命令 ulimit -a查看修改的内容已经生效:

        [cisco@localhost ~]$ ulimit -a

       core file size          (blocks, -c) 0
       data seg size           (kbytes, -d) unlimited
       scheduling priority             (-e) 0
        file size               (blocks, -f) unlimited
       pending signals                 (-i) 34816
      max locked memory       (kbytes, -l) 32
       max memory size         (kbytes, -m) unlimited
        
open files                      (-n) 65536
        pipe size            (512 bytes, -p) 8
       POSIX message queues     (bytes, -q) 819200
       real-time priority              (-r) 0
       stack size              (kbytes, -s) 10240
       cpu time               (seconds, -t) unlimited
        
max user processes              (-u) 65536
       virtual memory          (kbytes, -v) unlimited
       file locks                      (-x) unlimited