设置静态ip:
1,打开目录:
cd /etc/sysconfig/network-scripts/
2,编辑其中一个网卡配置文件,例如:
vi ifcfg-eno1
3,添加如下文件
4,重启网络服务
centos7下使用systemctl restart network进行重启网络服务。而centos8需要使用systemctl restart NetworkManager 进行重启网络。
备注:
重置用户密码:
alter user system identified by “Admin1”
解锁锁定用户
alter user system account unlock;