会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Binz
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
13
下一页
2020年10月9日
mongo 固定集合:Cannot change the size of a document in a capped collection: 37344 != 37337
摘要: mongo 固定集合有几个特性: 自动丢弃历史数据 不能删除数据 不能修改成长度不一致的数据 既然不能修改成长度不一致的,其实可以你的数据加一个删除状态,默认0,删除后就改成1,这样就达到类似删除的效果
阅读全文
posted @ 2020-10-09 11:00 Binz
阅读(174)
评论(0)
推荐(0)
2020年9月13日
centos 搭建代理服务器,解决内网无法上网问题
摘要: 前提:有A、B、C、D四台服务器,都在同一个网段,ABC不可联网,D可连接互联网。 在D安装代理软件 yum -y install tinyproxy 修改默认端口 vim /etc/tinyproxy/tinyproxy.conf Port 18899 #默认8888 #Allow 127.0.0
阅读全文
posted @ 2020-09-13 01:49 Binz
阅读(1359)
评论(0)
推荐(0)
2020年9月3日
seata 1.3.0 seata Global lock wait timeout
摘要: seata 服务降成1.2即可解决
阅读全文
posted @ 2020-09-03 15:17 Binz
阅读(3320)
评论(0)
推荐(0)
2020年8月17日
mysql5.7 DLETE IN You can't specify target table 'table' for update in FROM clause,
摘要: mysql5.7以前的操作是,可以正常删除数据 DELETE FROM table1 WHERE id IN ( SELECT * FROM ( SELECT id FROM table1 WHERE id < 30 ) a ) mysql5.7的操作需要微调一下,因为mysql5.7的sql优化后
阅读全文
posted @ 2020-08-17 15:49 Binz
阅读(113)
评论(0)
推荐(0)
2020年5月28日
java 动态修改阿里云域名解析,用于解决家用宽带公网ip经常变动问题
摘要: 需要有java、maven、springboot、阿里云域名使用经验、以及拥有一个域名 pom文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi=
阅读全文
posted @ 2020-05-28 18:14 Binz
阅读(1194)
评论(0)
推荐(0)
2020年5月27日
docker 搭建 gitea/gitea
摘要: 拉取镜像 https://gitea.io/zh-cn/ docker pull gitea/gitea 如果遇到拉取镜像超时,请更换源 https://www.cnblogs.com/binz/p/11790948.html 文章底部有更换源说明 创建目录 mkdir -p /home/docke
阅读全文
posted @ 2020-05-27 11:27 Binz
阅读(2707)
评论(0)
推荐(0)
2020年5月18日
docker 搭建 gofastdfs
摘要: 1、拉取镜像 docker pull sjqzhang/go-fastdfs 2、创建挂载目录 mkdir -p /home/dockerdata/gofastdfs/data 3、运行容器 docker run -d --restart=always --name gofastdfs -v /ho
阅读全文
posted @ 2020-05-18 18:20 Binz
阅读(1356)
评论(0)
推荐(0)
2020年5月15日
查看内存占用排前的应用
摘要: 内存前十:ps aux | head -1; ps aux | sort -k4nr | head -10 ip连接数统计: netstat -tun | awk '{print $5}' | cut -d: -f1 |sort | uniq -c | sort -n 端口占用:lsof -i:80
阅读全文
posted @ 2020-05-15 14:32 Binz
阅读(361)
评论(0)
推荐(0)
2020年5月14日
centos 设置软件自启动(例如:nginx)
摘要: systemctl enable nginx #设置自启动 systemctl disable nginx #停止自启动ls /usr/lib/systemd/system #查看自启动列表
阅读全文
posted @ 2020-05-14 14:14 Binz
阅读(262)
评论(0)
推荐(0)
centos7安装nginx centos6安装nginx
摘要: centos7 yum install epel-release yum update yum install -y nginx #安装stream模块,如果需要 yum install nginx-mod-stream -y# systemctl start nginx.service 启动ngi
阅读全文
posted @ 2020-05-14 14:07 Binz
阅读(157)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
13
下一页
公告