mysql的from_unixtime函数
2014-03-17 11:32
344 查看
克隆kvm的centos的镜像之后,启动克隆后的虚拟机报错,出现device eth0 does not seem to be present, delaying initialization这个错误
解决办法是
先打开/etc/udev/rules.d/70-persistent-net.rules
#cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:9e:b5:e1:14", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:9e:b5:e1:15", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
编辑/etc/sysconfig/network-scripts/ifcfg-eth0 修改HWADDR为eth1的HWADDR
#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:26:9e:b5:e1:15
TYPE=Ethernet
UUID=0564d60b-4d9c-463a-86f3-3522f58d76ad
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.2.115
NETMASK=255.255.255.0
NETWORK=192.168.2.0
GATEWAY=192.168.2.1
BROADCAST=192.168.2.255
删除/etc/udev/rules.d/70-persistent-net.rules
#rm -rf /etc/udev/rules.d/70-persistent-net.rules
重启系统
#reboot
本文出自 “Jeff” 博客,转载请与作者联系!
解决办法是
先打开/etc/udev/rules.d/70-persistent-net.rules
#cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:9e:b5:e1:14", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x10c9 (igb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:9e:b5:e1:15", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
编辑/etc/sysconfig/network-scripts/ifcfg-eth0 修改HWADDR为eth1的HWADDR
#cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:26:9e:b5:e1:15
TYPE=Ethernet
UUID=0564d60b-4d9c-463a-86f3-3522f58d76ad
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.2.115
NETMASK=255.255.255.0
NETWORK=192.168.2.0
GATEWAY=192.168.2.1
BROADCAST=192.168.2.255
删除/etc/udev/rules.d/70-persistent-net.rules
#rm -rf /etc/udev/rules.d/70-persistent-net.rules
重启系统
#reboot
本文出自 “Jeff” 博客,转载请与作者联系!
相关文章推荐
- mysql连接中文乱码设置
- 如何修改WAMP中mysql默认空密码
- MySQL数据类型varchar详解
- Mysql数据库解决中文乱码问题【不修改my.ini配置文件】
- mysql创建无敌用户(ip无法远程登录)
- navicat for mysql只导出数据表结构
- mysql DBA:mysqladmin常用命令总结
- mysqldump和binlog联合恢复数据流程
- mysql binlog三种格式和解析
- mysql安装配置
- mysql中engine=innodb和engine=myisam的区别【转】
- Invalid authorization specification message from server: "Access denied for user 'root'@'localhost'
- mysql 多表合并查询
- MySQL 生成 时间轴
- Working with large data sets in MySQL
- Why MySQL could be slow with large tables ?
- mysql笔记-- mysql命令札记1
- PHP同时连接多个mysql数据库示例代码
- PHP处理SQL脚本文件导入到MySQL的代码实例
- mysql DBA:mysqladmin常用命令总结