1 挂磁盘
CentOS7 创建 LVM 系统分区
2 修改主机名称
hostnamectl set-hostname llz-dcserver01
cat /etc/hostname
cat /etc/hosts
3 CentOS修改系统最大进程数
CentOS修改系统最大进程数
4 文件数优化
echo "SELINUX=disabled" > /etc/selinux/config
echo "SELINUXTYPE=targeted" >> /etc/selinux/config
echo "
* soft nproc 65536
* hard nproc 65536
* soft nofile 65536
* hard nofile 65536
* soft stack 10240
* hard stack 10240
* soft sigpending 65536
* hard sigpending 65536" >> /etc/security/limits.conf
echo "
* soft nproc unlimited
root soft nproc unlimited" > `ls /etc/security/limits.d/*.conf`