echo “======================修改文件描述符========================”
echo ‘加大系统文件描述符最大值’
{
echo ‘* soft nofile 65536’
echo ‘* hard nofile 65536’
echo ‘* soft nproc 65536’
echo ‘* hard nproc 65536’
} >> file
echo ‘查看配置内容’
cat /etc/security/limits.conf
echo ‘设置软硬资源限制’
ulimit -Sn ; ulimit -Hn
echo “===========================================================”