随笔分类 - 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
阅读全文
摘要:更换阿里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
阅读全文
摘要:出现虚拟网卡是因为安装时启用了 libvirtd 服务后生成的 关闭方法 virsh net-list 名称 状态 自动开始 持久 default active yes virsh net-destroy default virsh net-undefine default systemctl re
阅读全文

浙公网安备 33010602011771号