上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 77 下一页
摘要: for i in `seq 1 $(cat /proc/cpuinfo |grep "physical id" |wc -l)`; do dd if=/dev/zero of=/dev/null & done killall dd 阅读全文
posted @ 2018-01-10 16:53 ahuo 阅读(242) 评论(0) 推荐(0)
摘要: @echo offcurl.exe http://10.6.41.192:8888/images/ver.txt > v.txtset /P cv=<cv.txtset /P vv=<v.txtset filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~ 阅读全文
posted @ 2018-01-10 13:43 ahuo 阅读(292) 评论(0) 推荐(0)
摘要: pragma solidity ^0.4.18; contract test { function mul(uint a) public pure returns (uint) { uint c = a * 7; return c; } } 阅读全文
posted @ 2018-01-03 11:24 ahuo 阅读(311) 评论(0) 推荐(0)
摘要: 流程: 拍卖猫 10以太币 A 创建拍卖智能合约(cat ,10) B竞价20(B转账到合约20) C竞价40(C转账到合约40,并且返还B 20) A结束拍卖 (合约转账40到A) 阅读全文
posted @ 2018-01-02 15:31 ahuo 阅读(565) 评论(0) 推荐(0)
摘要: 用到的端口 TCP 30303 8545 sudo apt-get updatesudo apt-get installsoftware-properties-commonsudo add-apt-repository -y ppa:ethereum/ethereumsudo add-apt-rep 阅读全文
posted @ 2017-12-28 21:44 ahuo 阅读(923) 评论(3) 推荐(0)
摘要: cmd下 w32tm /stripchart /computer:time1.aliyun.com linux ntpdate ntp1.aliyun.com 阅读全文
posted @ 2017-12-22 14:21 ahuo 阅读(502) 评论(1) 推荐(0)
摘要: # 杀死所有正在运行的容器.docker kill $(docker ps -a -q) # 删除所有已经停止的容器.docker rm $(docker ps -a -q) # 删除所有未打标签的镜像.docker rmi $(docker images -q -f dangling=true) 阅读全文
posted @ 2017-11-17 10:41 ahuo 阅读(839) 评论(0) 推荐(0)
摘要: 1 2 3 阅读全文
posted @ 2017-11-14 11:05 ahuo 阅读(229) 评论(0) 推荐(0)
摘要: 172.18.120.5 机器有外网IP 在172.18.120.5上运行下面的命令: sudo iptables -t nat -A PREROUTING -p tcp --dport 8017 -j DNAT --to-destination 172.18.120.5:8017sudo ipta 阅读全文
posted @ 2017-11-05 20:29 ahuo 阅读(165) 评论(0) 推荐(0)
摘要: 设置禁用默认网关 添加永久路由 route -p Add 172.18.120.0 MASK 255.255.255.0 192.168.2.10 阅读全文
posted @ 2017-11-05 18:13 ahuo 阅读(7) 评论(0) 推荐(0)
摘要: 查看开机启动项 ls /etc/systemd/system/multi-user.target.wants/ 设置开机启动 systemctl enable mongodb.service 阅读全文
posted @ 2017-11-02 14:22 ahuo 阅读(158) 评论(0) 推荐(0)
摘要: 1,下载安装包 下载mongoDB的安装文件地址:https://www.mongodb.org/downloads#production 选择Linux 64-bit legacy 版本,下载到目标服务器上。解压文件tar -zxvf mongodb-linux-x86_64-3.0.2.tgz进 阅读全文
posted @ 2017-11-02 14:14 ahuo 阅读(184) 评论(0) 推荐(0)
摘要: 采用nginx作反向代理,出现了一个诡异的问题,小文件可以提交,大文件会报500内部错误。这个是什么原因导致的呢? 查wiki可知,上传文件大小相关的有三个配置 client_body_buffer_size 配置请求体缓存区大小, 不配的话, client_body_temp_path 设置临时文 阅读全文
posted @ 2017-11-01 10:23 ahuo 阅读(379) 评论(0) 推荐(0)
摘要: 数据快照路径 C:\Users\admin\AppData\Local\Parity\Ethereum\chains\ethereum\db\906a34e69aec8c0d\snapshot\restoration\db 阅读全文
posted @ 2017-10-12 15:01 ahuo 阅读(189) 评论(0) 推荐(0)
摘要: mongosql说明 db.users.find() select * from users 从user表中查询所有数据 db.users.find({“username” : “joe”, “age” : 27}) select * from users where “username” = “j 阅读全文
posted @ 2017-10-10 17:07 ahuo 阅读(578) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 77 下一页