上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 76 下一页
摘要: cmd下 w32tm /stripchart /computer:time1.aliyun.com linux ntpdate ntp1.aliyun.com 阅读全文
posted @ 2017-12-22 14:21 ahuo 阅读(477) 评论(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 阅读(831) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 阅读全文
posted @ 2017-11-14 11:05 ahuo 阅读(220) 评论(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 阅读(157) 评论(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 阅读(148) 评论(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 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 采用nginx作反向代理,出现了一个诡异的问题,小文件可以提交,大文件会报500内部错误。这个是什么原因导致的呢? 查wiki可知,上传文件大小相关的有三个配置 client_body_buffer_size 配置请求体缓存区大小, 不配的话, client_body_temp_path 设置临时文 阅读全文
posted @ 2017-11-01 10:23 ahuo 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 数据快照路径 C:\Users\admin\AppData\Local\Parity\Ethereum\chains\ethereum\db\906a34e69aec8c0d\snapshot\restoration\db 阅读全文
posted @ 2017-10-12 15:01 ahuo 阅读(183) 评论(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 阅读(564) 评论(0) 推荐(0) 编辑
摘要: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org 阅读全文
posted @ 2017-09-29 10:34 ahuo 阅读(226) 评论(0) 推荐(0) 编辑
摘要: MO='mongo'$MO << EOFuse testdbdb.dropDatabase()show dbsexit;EOF 阅读全文
posted @ 2017-09-27 17:01 ahuo 阅读(401) 评论(0) 推荐(0) 编辑
摘要: mongodump -h dbhost -d dbname -o dbdirectory mongorestore -h dbhost -d dbname --directoryperdb dbdirectory 阅读全文
posted @ 2017-09-27 17:00 ahuo 阅读(184) 评论(0) 推荐(0) 编辑
摘要: <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="db.TbuserWithBLOBs"> record.getId()就是新的ID 阅读全文
posted @ 2017-09-15 17:33 ahuo 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Tbuser record = new Tbuser(); TbuserWithBLOBs bloBs = tbuserMapper.selectByPrimaryKey((long) 34); bloBs.setCardid("00000"); tbuserMapper.updateByPrimaryKeyWithBLOBs(bloBs); ... 阅读全文
posted @ 2017-09-13 10:13 ahuo 阅读(324) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 76 下一页