1. 程式人生 > >Linux雜記

Linux雜記

-s eth mnt onf def nodeps class rpm 3.1

批量自動刪除rpm包:

rpm -qa | grep mysql | while read c; do rpm -e $c --nodeps; done


minimal最小化安裝

eth0默認沒有自啟用

修改配置文件onboot=true


修改靜態地址後發現無法ping外網

需要設置網關route add default gw 192.168.33.1

添加nameservervi /etc/resolv.confnameserver 192.168.33.1


掛載光盤mkdir /mnt/cdrommount -t iso9660 -o ro /dev/cdrom/ /mnt/cdrom


解決克隆後eth0不見的問題

直接修改 /etc/sysconfig/network-script/ifcfg-eth0刪掉UUID HWADDR

配置靜態地址

然後:rm -rf  /etc/udev/rules.d/70-persistent-net.rules

或者 vi /etc/udev/rules.d/70-persistent-net.rules 把裏面的eth1該為eth0 ,然後把原來的ech1刪掉

然後 reboot

Linux雜記