Linux系统坏了,硬盘换到别的服务器上,配置ip后不通,提示启动网卡启动失败报错例如:Deviceeth0doesnotseemtobepresen,delayinginitialization解决方法一:Cat/etc/udev/rules.d/70-persistent-net.rules查看本机网卡设备的名称和对应mac信息Viifcfg-eth0类似的网卡文件,修..
分类:
其他好文 时间:
2015-01-02 07:35:50
阅读次数:
182
参考:http://yhqlzz.blog.51cto.com/2557314/1159084/mysql官网:http://dev.mysql.com/doc/refman/5.1/en/replication-rules.html主从同步心得:http://www.educity.cn/shuj...
分类:
数据库 时间:
2014-12-31 19:45:17
阅读次数:
196
题意:有若干个颜色,每个颜色有若干头牛。
现在将牛进行配对,使得每对颜色都不一样,有SPJ。
题解:一旦某种颜色的牛数量占当前未配对牛总数最多,那么就要群起而攻之!
利用pq或者heap解决。
代码:
#include
#include
#include
#include
#include
#define N 101000
#define inf 0x3f3f3...
分类:
其他好文 时间:
2014-12-31 10:04:33
阅读次数:
166
12 Golden Rules For Living 12条生活黄金定律1. If you open it, close it.开了头的,记得结束。2. If you turn it on, turn it off.一旦打开,记得关上。3. If you unlock it, lock it up....
分类:
其他好文 时间:
2014-12-31 06:19:45
阅读次数:
152
/** *获取全局并发队列 */ dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); // 1.添加到异步任务队列中执行,开启新线程 dispatch_async...
分类:
移动开发 时间:
2014-12-30 15:03:23
阅读次数:
169
centos网络配置
环境:
系统硬件:vmware vsphere (CPU:2*4核,内存2G)
系统版本:Centos-6.5-x86_64
路由器网关:192.168.1.1
步骤:
1.查看网络MAC地址
[root@centos ~]# cat /etc/udev/rules.d/70-persistent-net.rules
显示如...
分类:
系统相关 时间:
2014-12-30 11:52:17
阅读次数:
253
在配置vmbox虚拟机的时候,为了方便,经常采用复制虚拟机的操作,但是复制后的虚拟机即便采用了桥接网络的方式,还是无法正常连接局域网后来网上查了一下,可以重新设置eth首先查看文件/etc/udev/rules.d/70-persistent-net.rules内容类似如下:#Thisfilewasautomaticallygener..
分类:
系统相关 时间:
2014-12-29 18:34:55
阅读次数:
424
When managing a project, it is important to develop a clear understanding of the customers' requirements and their priority. Many projects start with ...
分类:
其他好文 时间:
2014-12-29 10:22:53
阅读次数:
113
#include
#include
#include
using namespace std;
int main(){
int k,n;
while(~scanf("%d%d",&n,&k))
{
priority_queue,greater >q;
int t;
for(int i=0;i<n;++i)
{...
分类:
其他好文 时间:
2014-12-29 01:21:37
阅读次数:
183
Makefile: *** 混合的隐含和普通规则。 停止。Makefile: *** mixed implicit and normal rules. Stop.这个原因可能是Make工具对低版本内核的Makefile一些旧的规则兼容不好,我们只需要修改对应的Makefile。如 一:原始的:/ %...
分类:
其他好文 时间:
2014-12-28 07:02:00
阅读次数:
124