摘要: 周末一台数据库备份服务器搬迁,搬完后启动服务器检查网络正常。周一早晨过来发现数据同步异常,检查后发现到主库网络不通(注:备库与主库不在同一个网段,通过配置静态路由连接)。重新执行添加静态路由命令:route add –net 192.168.1.0 netmask 255.255.255.0 eth 阅读全文
posted @ 2017-12-18 08:50 dajiede 阅读(281) 评论(0) 推荐(0) 编辑
摘要: /* *连接数据库 */ public static boolean FaqDBCon(){ boolean flag = false; try{ //db服务器地址,端口 MongoClient mongoClient = new MongoClient("192.168.96.99",27017); ... 阅读全文
posted @ 2017-12-15 09:49 dajiede 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 1.查看设备网卡数量 lspci|grep Ethernet 查看pci插槽网卡数量2.网卡配置文件 /etc/sysconfig/network-scripts/ifcfg-interface-name(interface-name根据网卡类型、排序不同一般是eth0 ppp0) ifcfig文件 阅读全文
posted @ 2017-06-25 17:22 dajiede 阅读(4441) 评论(0) 推荐(0) 编辑
摘要: 1.去重复select distinct table.a from table2.分类统计select count(*),table.a from table group by table.a 阅读全文
posted @ 2016-01-11 18:08 dajiede 阅读(174) 评论(0) 推荐(0) 编辑