查看你的ip地址, ip -a 2.没有ip地址怎么 查看 以及激活 nmcli con 注释查看 你的ip 地址 nmcli con up ens33 激活你的ip地址 获取ip地址 方法2 dhclinet 获取ip地址 关闭防火墙 systemctl status 软件名 查看服务的运行状态 systemctl stop firewalld 临时关闭防火墙 systemctl start firewalld 开启防火墙 systemctl restart firewalld 重启防火墙 systemctl disable firewalld 防火墙开机不自启 setenforce 0 临时关闭内核防火墙 修改主机名称 hostnamectl ets-hostanme + 新名称 root密码 # cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) 修复模式: 1,特权模式:不需要root密码,直接以root账户身份登陆。 密码时特权模式。 1.重起系统,进入grub菜单 2.选择要使用的内核 3.按e 4.找到linux16那一行,把光标移动到最后,添加 init=/bin/sh 5.ctrl+x #保存退出 6.进入系统后,以rw方式重新挂载/分区 #mount -o remount,rw / 7.永久关闭selinux #vim /etc/sysconfig/selinux 8.修改密码 9. # touch /.autorelabcl #重新识别新的root密码 10. # exec /sbin/init #重启机器, 测试登录