一、Linux
Linux 登录慢的解决方案
1.禁用DNS 解析
/etc/ssh/sshd_config 中将 UseDNS 设置为 no
2.关闭GSSAPI 认证
/etc/ssh/sshd_config 中将 GSSAPIAuthentication 设置为 no
3.用sed 命令修改配置文件
cat /etc/ssh/sshd_config |grep -E "UseDNS|GSSAPIAuthentication"
sed -i 's/#UseDNS yes/UseDNS no/' /etc/ssh/sshd_config
sed -i 's/GSSAPIAuthentication yes/GSSAPIAuthentication no/' /etc/ssh/sshd_config
systemctl restart sshd
二、其他
参考链接:
https://juejin.cn/post/7218948376167366713 【nginx 开启gzip压缩】
https://www.cnblogs.com/lvzhenjiang/p/14386197.html 【ansible优化】