克隆kvm的centos的镜像之后,启动克隆后的虚拟机报错,出现deviceeth0doesnotseemtobepresent,delayinginitialization这个错误解决办法是先打开/etc/udev/rules.d/70-persistent-net.rules#cat/etc/udev/rules.d/70-persistent-net.rules#Thisfilewasautomaticallygeneratedbyt..
分类:
其他好文 时间:
2014-08-12 17:33:25
阅读次数:
183
配置ftpYUM库。服务器端配置ip地址:[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneONBOOT=yesHWADDR=00:0c:29:59:3c:4aIPADDR=192.168.1.1NETMASK=255.255.255.0[root@localhost~]#/etc/init.d/networkrestart正在关闭接口eth0:[..
分类:
其他好文 时间:
2014-08-12 03:34:34
阅读次数:
219
实时查看正在执行的sql语句# /usr/sbin/tcpdump -i eth0 -s 0 -l -w - dst port 3306 | strings | egrep -i 'SELECT|UPDATE|DELETE|INSERT|SET|COMMIT|ROLLBACK|CREATE|DROP...
分类:
Web程序 时间:
2014-08-11 20:34:42
阅读次数:
327
在redhatEenterprise6或者CentOS6以上版本在使用KVM虚拟化的时,会需要配置到桥接网卡,下面就非常简单的讲一下桥接的方法(真的很简单):
查看eth0的现有状态:
[root@localhost~]#cd/etc/sysconfig/network-scripts/
[root@localhostnetwork-scripts]#catifcfg-eth0
DE..
分类:
其他好文 时间:
2014-08-11 18:11:43
阅读次数:
185
进入操作系统
yum install docker-io
docker -d
提示没有空闲IP地址可以给桥接网卡使用了
编辑下内网网卡eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=x.x.x.x
NETMASK=255.255.248.0
BRIDGE='docker0'
新建一个docker0配置文件
DEVI...
分类:
其他好文 时间:
2014-08-11 17:51:42
阅读次数:
212
工作上遇到需要在linux下设置电信网通双线路IP地址,操作系统为Suse Linux Enterprise Linux 11 SP2,简要记录下步骤: 编辑/etc/sysconfig/network/ifcfg-eth0,?/etc/sysconfig/network/ifcfg-eth1, 设置两个网...
分类:
移动开发 时间:
2014-08-11 15:26:41
阅读次数:
268
系统环境:CentOS Linux 网络环境: 两个IP地址,192.168.0.10和10.10.30.2,掩码是255.255.255.0, 这两个子网的网关地址分别是192.168.0.1和10.10.30.1。 ? 1.为网卡eth0配置ip地址192.168.0.10,为网卡eth1配...
分类:
其他好文 时间:
2014-08-11 12:17:24
阅读次数:
244
要设置 IP 和 DNS 解析服务器,编辑 /etc/network/interfaces:# interfaces(5) file used by ifup(8) and ifdown(8)auto loiface lo inet loopbackauto eth0iface eth0 inet ...
分类:
其他好文 时间:
2014-08-09 21:05:49
阅读次数:
227
vim /etc/udev/rules.d/70-persistent-net.rules可以看到eth0 eth1两个。注释NAME="eth0"# PCI device 0x8086:0x100f (e1000)SUBSYSTEM=="net", ACTION=="add", DRIVERS==...
分类:
其他好文 时间:
2014-08-09 18:20:58
阅读次数:
212
vim /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别...
分类:
其他好文 时间:
2014-08-09 18:16:19
阅读次数:
184