Linux Troubleshoot

here were XXX failed login attempts since the last successful login.

Too Many Open Files

vi /etc/sysctl.conf

1
2
3
4
5
6
net.ipv4.tcp_keepalive_time = 1800
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 15

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

sysctl -p

时间不准确

通过ntp同步时间

  • 需要安装 yum install -y ntp
  • 启动 systemctl enable ntpd
  • 更新时间 ntpdate -u ntp1.aliyun.com

直接修改

1
timedatectl set-time "2022-06-10 18:34:00"