cat /etc/fstab
/dev/mapper/centos-swap swap swap defaults 0 0
- 关闭NetworkManager 🐏
systemctl disable --now NetworkManager
- 进行时间同步(有自己的时间服务器更好)🐒
安装
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
yum -y install ntpdate
同步
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo ‘Asia/Shanghai’ >/etc/timezone
ntpdate ntp.aliyun.com
crontab -e
crontab -l
*/5 * * * * ntpdate ntp.aliyun.com
- 配置ulimit 🐓
ulimit -SHn 65535
vim /etc/security/limits.conf
-
soft nofile 655360
-
hard nofile 131072
-
soft nproc 655350
-
hard nproc 655350
-
seft memlock unlimited