Centos 前准备工作
CentOS设置开机自动登录root用户(不用输密码)
vim /etc/gdm/custom.conf
在[daemon]后面加入:
AutomaticLoginEnable=True
AutomaticLogin=root
重启虚拟机
reboot
Linux SSH远程登录总是卡顿10秒左右
1、打开配置文件
vim /etc/ssh/sshd_config
2、输入/
搜索,输入UseD
(区分大小写),按回车
3、按i
进入编辑模式
4、把原来的值:
#UseDNS yes
改成:
(删除#
,yes
修改为no
)
UseDNS no
5、修改以后按Esc
退出编辑模式,输入:wq
保存
6、重启虚拟机即可
命令:reboot
(只重启网络不行)