会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
程序之家
os .net vc++ asm driver wireless
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
17
18
19
20
21
22
23
24
25
···
77
下一页
2018年1月24日
spring boot常用注解
摘要: @EnableAutoConfiguration 启动自动装载:使用了这个注解之后,所有引入的jar的starters都会被自动注入。这个类的设计就是为starter工作的。 @RestController 这个注解专门用于写RESTful的接口的,里面集成了@Controller和@Respons
阅读全文
posted @ 2018-01-24 21:33 ahuo
阅读(240)
评论(0)
推荐(0)
2018年1月11日
Java Date 时分秒置0
摘要: Date now = new Date(); Calendar cal1 = Calendar.getInstance(); cal1.setTime(now); // 将时分秒,毫秒域清零 cal1.set(Calendar.HOUR_OF_DAY, 0); cal1.set(Calendar.MINUTE, 0); cal1.set(Calendar.SECOND, 0); cal1.set...
阅读全文
posted @ 2018-01-11 09:51 ahuo
阅读(13960)
评论(0)
推荐(0)
2018年1月10日
linux cpu 100% 脚本
摘要: 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
阅读(262)
评论(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
阅读(305)
评论(0)
推荐(0)
2018年1月3日
智能合约 运算
摘要: 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
阅读(322)
评论(0)
推荐(0)
2018年1月2日
智能合约 拍卖
摘要: 流程: 拍卖猫 10以太币 A 创建拍卖智能合约(cat ,10) B竞价20(B转账到合约20) C竞价40(C转账到合约40,并且返还B 20) A结束拍卖 (合约转账40到A)
阅读全文
posted @ 2018-01-02 15:31 ahuo
阅读(576)
评论(0)
推荐(0)
2017年12月28日
以太坊私有链
摘要: 用到的端口 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
阅读(937)
评论(3)
推荐(0)
2017年12月22日
ntp测试
摘要: cmd下 w32tm /stripchart /computer:time1.aliyun.com linux ntpdate ntp1.aliyun.com
阅读全文
posted @ 2017-12-22 14:21 ahuo
阅读(513)
评论(1)
推荐(0)
2017年11月17日
docker 清理命令
摘要: # 杀死所有正在运行的容器.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
阅读(853)
评论(0)
推荐(0)
2017年11月14日
spring boot application.properties
摘要: 1 2 3
阅读全文
posted @ 2017-11-14 11:05 ahuo
阅读(243)
评论(0)
推荐(0)
2017年11月5日
iptables端口转发
摘要: 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
阅读(177)
评论(0)
推荐(0)
vpn 禁用默认网关,添加永久静态路由
摘要: 设置禁用默认网关 添加永久路由 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)
2017年11月2日
centos7 开机启动管理
摘要: 查看开机启动项 ls /etc/systemd/system/multi-user.target.wants/ 设置开机启动 systemctl enable mongodb.service
阅读全文
posted @ 2017-11-02 14:22 ahuo
阅读(170)
评论(0)
推荐(0)
mongodb centos7上的安装
摘要: 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
阅读(198)
评论(0)
推荐(0)
2017年11月1日
nginx 413 500报错
摘要: 采用nginx作反向代理,出现了一个诡异的问题,小文件可以提交,大文件会报500内部错误。这个是什么原因导致的呢? 查wiki可知,上传文件大小相关的有三个配置 client_body_buffer_size 配置请求体缓存区大小, 不配的话, client_body_temp_path 设置临时文
阅读全文
posted @ 2017-11-01 10:23 ahuo
阅读(397)
评论(0)
推荐(0)
上一页
1
···
17
18
19
20
21
22
23
24
25
···
77
下一页
公告