摘要: package com.bonc.util; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; public class CopyExcelTest { /** * 复制单个文件 * @par... 阅读全文
posted @ 2017-12-22 09:25 丨Mars 阅读(205) 评论(0) 推荐(0) 编辑
摘要: ⦁ 修改/etc/sysconfig/network-scripts/ifcfg-eth0文件 (首先查看本机vmware 虚拟网络编辑器中的网关) 重启网络 使用命令:service network restart 或者 /etc/init.d/network restart 阅读全文
posted @ 2017-11-19 18:07 丨Mars 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1.master配置 2.master增加用户 3.从数据库检测是否可以远程连接主数据库 笔记:防火墙3306端口开通 iptables -I INPUT -s 0/0 -p tcp --dport 3306 -j ACCEPT 查看iptables -L -n|grep 3306 4.从数据库配置 阅读全文
posted @ 2017-11-19 17:37 丨Mars 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1.配置类 2.注解使用 3.启动类添加 阅读全文
posted @ 2017-11-03 11:16 丨Mars 阅读(17481) 评论(1) 推荐(0) 编辑
摘要: 1.获取所有topic 2.参考http://www.cnblogs.com/liuming1992/p/6432626.html生成消费者,这里进行了小小的改造 3.pom 4. 阅读全文
posted @ 2017-10-24 15:50 丨Mars 阅读(15895) 评论(1) 推荐(4) 编辑
摘要: 1.参考网上Python的例子自己写了一个go语言的。这个仅供学习技术参考,为了方便有部分参数直接phantomjs执行js获取,代码基本都有注释,测试打印没有删除,还请见谅! 2.本文参考http://blog.csdn.net/qiye_/article/details/52884491 话不多 阅读全文
posted @ 2017-10-24 15:39 丨Mars 阅读(3940) 评论(0) 推荐(0) 编辑
摘要: 0.查看有哪些主题: ./kafka-topics.sh --list --zookeeper 192.168.0.201:12181 1.查看topic的详细信息 ./kafka-topics.sh -zookeeper 127.0.0.1:2181 -describe -topic testKJ 阅读全文
posted @ 2017-10-18 14:15 丨Mars 阅读(377) 评论(0) 推荐(0) 编辑
摘要: 1.MongoDb 命令查询所有数据库列表 (http://blog.csdn.net/u010305706/article/details/48129131) 2.https://studygolang.com/articles/810 //json转换3.https://godoc.org/ / 阅读全文
posted @ 2017-09-21 16:35 丨Mars 阅读(236) 评论(0) 推荐(0) 编辑
摘要: GOOS:目标平台的操作系统(darwin、freebsd、linux、windows) GOARCH:目标平台的体系架构(386、amd64、arm) Mac 下编译 Linux 和 Windows 64位可执行程序 Linux 下编译 Mac 和 Windows 64位可执行程序 Windows 阅读全文
posted @ 2017-09-20 17:44 丨Mars 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 1.基于幽灵蛛pholcus开源项目的规则 直接贴代码,代码可以更改后用于其他爬虫项目 2.相关方法 阅读全文
posted @ 2017-09-01 16:19 丨Mars 阅读(1504) 评论(0) 推荐(0) 编辑