bineyond / bineyond.github.io Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
https://ubin.top/2020/01/30/Ticker%E8%B5%84%E6%BA%90%E6%B3%84%E9%9C%B2/#more
问题项目中遇到的一个问题,项目运行一段时间后CPU使用率会逐步上升到100%,导致系统异常,排查是在Ticker上使用出现错误,网上也有类似的案例:在使用Tikcer后没有释放导致。在此做下记录。
最近在看《UNIX网络编程-第二版-卷2:进程间通讯》,下载了源码,在SLES SP4 32bit 无法编译,需要做些修改如下
1 下载源码:W. Richard Stevens的主页:http://www.kohala.com/start/
1wget http://www.kohala.com/start/unpv22e/unpv22e.tar.gz -P /usr/local/src
2
https://ubin.top/2020/12/29/Docker-Operation-not-permitted/
Docker容器使用问题Failed to get D-Bus connection: Operation not permitted问题使用centos7镜像创建容器后,在里面使用systemctl启动服务报错。 12345docker run -itd --name centos7 centos:7docker attach centos7yum install vsftpdsystemctl
使用docker创建C++编译环境,自动创建二进制执行程序。
https://ubin.top/2021/01/08/Percona-Data-Recovery-Tool-for-InnoDB/
遇到这么一个问题,不小心删除关键数据(delete),MySQL 没有备份且没有开 binlog。网上搜寻了一遍,发现可以使用 percona 的恢复工具解决,本文做个恢复步骤记录。
https://ubin.top/2020/01/30/Ticker%E8%B5%84%E6%BA%90%E6%B3%84%E9%9C%B2/
问题项目中遇到的一个问题,项目运行一段时间后CPU使用率会逐步上升到100%,导致系统异常,排查是在Ticker上使用出现错误,网上也有类似的案例:在使用Tikcer后没有释放导致。在此做下记录。
Thanks
https://ubin.top/2019/10/23/docker%E5%AE%89%E8%A3%85DB2/
拉取镜像https://hub.docker.com/r/ibmcom/db2 1docker pull ibmcom/db2
https://ubin.top/2020/03/15/singleflight%E6%9C%AC%E5%9C%B0%E7%BC%93%E5%AD%98%E5%AE%9E%E4%BE%8B/#more
本地保存商户信息,模拟并发情况下缓存穿透情况,到 DB 获取 MCH 信息。
https://ubin.top/2019/10/24/DB2%E9%85%8D%E7%BD%AE%E8%BF%9C%E7%A8%8B%E6%95%B0%E6%8D%AE%E5%BA%93/
在DB2客户机上连接远程DB2服务之前,必须正确设置服务端通信协议。DB2支持的协议有TCP/IP、NetBIOS、NPIPE等。 基本分成2步: 在客户机上对远程DB2节点进行设置。 在客户机上对远程数据库进行设置。
https://blog.ubin.top/2019/10/28/docker%E6%90%AD%E5%BB%BAoracle-helowin-oracle-11g/#more
拉取镜像 https://cr.console.aliyun.com/images/cn-hangzhou/oracle11-helowin/oracle11-helowin/detail?accounttraceid=24cfa63bff0f483db7d63268686a7a32yabl 123docker pull registry.cn-hangzhou.aliyuncs.com/hel
https://ubin.top/2019/10/23/docker%E5%AE%89%E8%A3%85DB2/
拉取镜像https://hub.docker.com/r/ibmcom/db2 1docker pull ibmcom/db2
https://ubin.top/2020/03/15/Go%E9%98%B2%E7%BC%93%E5%AD%98%E5%87%BB%E7%A9%BFsingleflight/
缓存更新问题缓存是高并发业务的基石,当访问量突然上升的时候,缓存失效回源时会将请求打到后台数据库,导致服务器响应延迟或者宕机的情况。 通常缓存更新方案: 1.业务代码中,根据key从缓存拿不到数据,访问存储层获取数据后更新缓存 2.由专门的定时脚本在缓存失效前对其进行更新 3.通过分布式锁,实现只有一个请求负责缓存更新,其他请求等待:一种基于哨兵的缓存访问策略 通常获取缓存这样写: 1234d
https://ubin.top/2019/10/24/DB2%E9%85%8D%E7%BD%AE%E8%BF%9C%E7%A8%8B%E6%95%B0%E6%8D%AE%E5%BA%93/#more
在DB2客户机上连接远程DB2服务之前,必须正确设置服务端通信协议。DB2支持的协议有TCP/IP、NetBIOS、NPIPE等。 基本分成2步: 在客户机上对远程DB2节点进行设置。 在客户机上对远程数据库进行设置。
https://ubin.top/2019/10/22/%E5%9C%A8nginx%20proxy-pass%E4%B8%AD%E7%A6%81%E7%94%A8IPv6/
最近在生产服务上遇到 nginx 正向代理连接失败的问题。 12019/10/22 15:25:21 [error] 1930#0: *1482670 connect() to [AAAA:BBBB:C:DDD:E:F:GGG:HHH]:443 failed (101: Network is unreachable) while connecting to upstream, client: AA
https://ubin.top/2019/03/17/ARTS/
加入极客时间《左耳听风》第3期 ARTS 打卡小组
https://ubin.top/2015/03/29/%E8%AE%B2%E7%BB%99%E8%B0%81%E5%90%AC/
有东西被加密了, 请输入密码查看.
404页面 * { margin: 0; padding: 0; outline: none; font-family: \5FAE\8F6F\96C5\9ED1, 宋体; -webkit-user-select: none;
https://ubin.top/2020/04/09/go-cgo-oracle/#more
Linux 环境安装 oracle-instantclient下载 Oracle 官网 下载 zip 包并解压 instantclient-basic-linux.x64-12.2.0.1.0.zip instantclient-basiclite-linux.x64-12.2.0.1.0.zip instantclient-sdk-linux.x64-12.2.0.1.0.zip instan
https://ubin.top/2016/02/01/getopt%E5%92%8Cgetopt-long%E5%87%BD%E6%95%B0/
在linux下写程序时常常需要对命令行参数进行处理。下面比对下getopt、getopt_long、getopt_long_only。
https://ubin.top/2019/04/23/Go%E7%A9%BA%E7%BB%93%E6%9E%84%E4%BD%93%E6%AF%94%E8%BE%83/#more
下面代码的输出是什么(判断 a == b )的部分?为什么?
https://ubin.top/2021/01/11/docker-timezone-localtime/
问题使用 docker 经常会遇到时区问题。基本上都是UTC时间,默认时区为0时区, 123docker run --name test --rm -ti alpine /bin/sh# dateMon Jan 11 02:52:18 UTC 2021 而我们主要用的是 CST 时间,北京时间,位于东八区。时区代号: Asia/Shanghai 123docker run --name test
https://ubin.top/2020/12/29/docker-tips/#more
Docker容器使用问题Failed to get D-Bus connection: Operation not permitted问题使用centos7镜像创建容器后,在里面使用systemctl启动服务报错。 12345docker run -itd --name centos7 centos:7docker attach centos7yum install vsftpdsystemctl
https://ubin.top/2015/03/27/hello-world/
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
https://ubin.top/2015/12/13/%E7%B3%BB%E7%BB%9F%E4%B8%8A%E7%BA%BF/
系统上线,通宵晚上4个系统要上线,通宵的节奏,预祝一切顺利!!!
https://ubin.top/2019/10/22/%E5%9C%A8nginx%20proxy-pass%E4%B8%AD%E7%A6%81%E7%94%A8IPv6/
最近在生产服务上遇到 nginx 正向代理连接失败的问题。 12019/10/22 15:25:21 [error] 1930#0: *1482670 connect() to [AAAA:BBBB:C:DDD:E:F:GGG:HHH]:443 failed (101: Network is unreachable) while connecting to upstream, client: AA
https://ubin.top/2020/12/29/supervisor/
Supervisor简单介绍supervisor是一个 Client/Server模式的系统,允许用户在类unix操作系统上监视和控制多个进程,或者可以说是多个程序。supervisor与launchd,daemontools,runit等程序有着相同的功能,与其中某些程序不同的是,它并不作为“id 为 1的进程”而替代init。相反,它用于控制应用程序,像启动其它程序一样,通俗理解就是,把Sup
https://ubin.top/2019/09/29/ssltools/
最近遇到部署https网站,在iOS端访问正常,在Android端访问异常,检查发现是证书链补全导致,缺少中间证书。
https://ubin.top/2015/03/27/hello-world/
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
https://ubin.top/2020/12/28/db2-driver-on-macos/#more
选择版本此处选择 11 版本开始有 MacOS 版本支持,需下载11版本。选择 【IBM Data Server Driver Package】
12https://segmentfault.com/a/1190000013757098https://studygolang.com/articles/27226 目的 不关闭现有连接(正在运行中的程序) 新的进程启动并替代旧进程 新的进程接管新的连接 连接要随时响应用户的请求,当用户仍在请求旧进程时要保持连接,新用户应请求新进程,不可以出现拒绝请求的情况 流程 1、替换可执行文件或修改配置
值得学习的C语言开源项目1. WebbenchWebbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模拟3万个并发连接去测试网站的负载能力。Webbench使用C语言编写, 代码实在太简洁,源码加起来不到600行。下载链接:http://home.tiscali.cz/~cz210552/we
https://ubin.top/2020/03/15/Go%E9%98%B2%E7%BC%93%E5%AD%98%E5%87%BB%E7%A9%BFsingleflight/
缓存更新问题缓存是高并发业务的基石,当访问量突然上升的时候,缓存失效回源时会将请求打到后台数据库,导致服务器响应延迟或者宕机的情况。 通常缓存更新方案: 1.业务代码中,根据key从缓存拿不到数据,访问存储层获取数据后更新缓存 2.由专门的定时脚本在缓存失效前对其进行更新 3.通过分布式锁,实现只有一个请求负责缓存更新,其他请求等待:一种基于哨兵的缓存访问策略 通常获取缓存这样写: 1234d
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.