Centos 7.9
root免密登录
打开终端输入
vi /etc/gdm/custom.conf
在[daemon]下增加
AutomaticLoginEnable=True
AutomaticLogin=root
保存文件,重启
查看用户群组以及删除用户
cut -d : -f 1 /etc/passwd
cut -d : -f 1 /etc/group
userdel -r user1
静态网络配置
ifconfig
vim /etc/sysconfig/network-scripts/ifcfg-ens33
service network restart
ping baidu.com
以下为案例:
-----------------------------------
IPADDR=192.168.37.110 (与ip在同一网段)
NETMASK=255.255.255.0 (一致即可)
GATEWAY=192.168.37.2 (一致即可)
DNS1=8.8.8.8
-----------------------------------