Boot process hangs at dracut: Switching root
当启动系统时提示:Switching root 错误原因: When the boot process switches root from the initramfs loaded in memory to the mounted storage, it executes the upstart initscripts in /etc/init/, which in turn continue the boot process to the login […]
保存iptables时出现:unloading iptables modules
在使用centos6时,出现了unloading iptables modules卡住,然后不在执行其他行动。 解决办法: vi /etc/sysconfig/iptables-config 将以下字段的yes改为no即可: IPTABLES_MODULES_UNLOAD="yes"
强制umount一个挂载
在移除设备的时候会发生,设备繁忙之类的提醒。 而我们又不知道,哪个进程在访问设备,便可以使用此方法解决。 这里假设/mnt为挂载分区。 fuser -cu /mnt fuser -ck /mnt fuser -c /mnt
iptables的一些用法
禁用25端口: iptables -I FORWARD -p tcp --dport 25 -j DROP 禁用UDP,只开启53端口(DNS协议): list=`grep nameserver /etc/resolv.conf |awk '{print $NF}'` for i in $list do iptables -A OUTPUT -p udp -d $i --dport 53 -j ACCEPT done iptables -A OUTPUT […]
solusvm里面批量启动VPS
Xen PV/HVM CFGS=/home/xen/vm*/;for cfg in $CFGS;do xm create $cfg*.cfg;done OpenVZ CFGS=`vzlist -S -Ho ctid`;for cfg in $CFGS;do vzctl start $cfg;done KVM CFGS=/home/kvm/kvm*/;for cfg in $CFGS;do virsh create $cfg*.xml;done
强制删除solusvm的节点 笔记
php /usr/local/solusvm/scripts/deletenode.php --level=force --comm=delete --id=