随笔分类 -  linux

摘要:ip a | grep inet | grep -v "127.0.0.1" | awk '{print $2}' | grep "192"解说: ip a 查看IP , grep inet -v “127.0.0.1” 过滤 127 网段, awk "{print $2}" 匹配第二段 grep 阅读全文
posted @ 2020-04-18 19:22 孽ペ 阅读(108) 评论(0) 推荐(0)
摘要:更换阿里yum源 cd /etc/yum.repos.d/mv CentOS-Base.repo CentOS-Base.repo.bakwget http://mirrors.aliyun.com/repo/Centos-7.repo && mv Centos-7.repo CentOS-Base 阅读全文
posted @ 2019-12-20 13:12 孽ペ 阅读(493) 评论(0) 推荐(0)
摘要:出现虚拟网卡是因为安装时启用了 libvirtd 服务后生成的 关闭方法 virsh net-list 名称 状态 自动开始 持久 default active yes virsh net-destroy default virsh net-undefine default systemctl re 阅读全文
posted @ 2019-12-20 13:11 孽ペ 阅读(512) 评论(0) 推荐(0)