hopeless-dream

导航

2020年5月3日 #

firewall-cmd命令

摘要: 常用命令 [root@hehe ~]# systemctl start firewalld.service [root@hehe ~]# firewall-cmd --state running [root@hehe ~]# firewall-cmd --permanent --zone=publi 阅读全文

posted @ 2020-05-03 23:43 hopeless-dream 阅读(233) 评论(0) 推荐(0) 编辑

Ubuntu忘记root密码

摘要: 在系统启动时,长按ESC或shift键进入grub 选择高级选项,然后回车进入下图: 输入e,进入下图: 将图中的ro recovery nomodeset改为quiet splash rw init=/bin/bash,改完如下 按'F10'键,数秒后,进入界面如下,然后passwd修改root密 阅读全文

posted @ 2020-05-03 23:35 hopeless-dream 阅读(1136) 评论(1) 推荐(1) 编辑

Ubuntu配置静态IP

摘要: Ubuntu18.04配置静态IP 18.04和之前的版本配置静态IP上有很大差异,使用yaml文件进行配置。 查看本机IP root@root:/etc/netplan# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue stat 阅读全文

posted @ 2020-05-03 21:50 hopeless-dream 阅读(1047) 评论(0) 推荐(0) 编辑

nmcli最常用的名令

摘要: connection连接相关 nmcli查看ip [root@hehe ~]# nmcli eth0: connected to eth1 "Red Hat Virtio" ethernet (virtio_net), 00:16:3E:0E:45:31, hw, mtu 1500 ip4 defa 阅读全文

posted @ 2020-05-03 18:11 hopeless-dream 阅读(492) 评论(0) 推荐(0) 编辑

nmcli的基本使用

摘要: 介绍NetworkManager、centos8、nmcli CentOS 7中同时支持network.service和NetworkManager.service(简称NM)2种方式配置网络,而在CentOS 8中已经废弃network.service,必须通过NetworkManager.ser 阅读全文

posted @ 2020-05-03 14:07 hopeless-dream 阅读(1167) 评论(0) 推荐(0) 编辑