聊聊TCP Keepalive、Netty和Docker
摘要:聊聊TCP Keepalive、Netty和Docker 本文主要阐述TCP Keepalive和对应的内核参数,及其在Netty,Docker中的实现。简单总结了工作中遇到的问题,与大家共勉。 起因 之所以研究TCP Keepalive机制,主要是由于在项目中涉及TCP长连接。服务端接收客户端请求
阅读全文
posted @
2021-08-06 21:21
eshizhan
阅读(1881)
推荐(0)
How to get the free disk space in PostgreSQL (PostgreSQL获取磁盘空间)
摘要:Get the current free disk space in PostgreSQL PostgreSQL获取磁盘空间 "from eshizhan" Here has a simple way to get free disk space without any extended langu
阅读全文
posted @
2019-09-01 22:27
eshizhan
阅读(568)
推荐(0)
Debian/Ubuntu pip default install to $HOME/.local
摘要:pip default install to $HOME/.local on Debian/Ubuntu After pip 8.1.1 2 on Debian or Ubuntu you can pip install package without root user, which defaul
阅读全文
posted @
2017-10-05 11:51
eshizhan
阅读(429)
推荐(0)
SVN: bdb: BDB1538 Program version 5.3 doesn't match environment version 4.7
摘要:Q:bdb: BDB1538 Program version 5.3 doesn't match environment version 4.7A:svnadmin recover /var/whatever/xbt[via]
阅读全文
posted @
2015-11-23 20:06
eshizhan
阅读(835)
推荐(0)
OpenSSL Command-Line HOWTO
摘要:OpenSSL Command-Line HOWTOThe openssl application that ships with the OpenSSL libraries can perform a wide range of crypto operations. This HOWTO prov...
阅读全文
posted @
2015-11-23 14:03
eshizhan
阅读(4358)
推荐(0)
树莓派保卫战--防止SSH暴力破解
摘要:自己用树莓派搭建了个小server,用了很长时间了,最近查看log发现有很多SSH登陆失败,瞬间心就碎了,一直没关心小派的安全问题,怪我咯! 马上行动,首先研究下log:/var/log/auth.log记录了SSH登陆等权限安全信息,如何知道自己被攻击了呢?# grep sshd.\*Fai...
阅读全文
posted @
2015-11-18 17:50
eshizhan
阅读(2572)
推荐(0)
Show Linux Package Sort By Size
摘要:ArchLinux:~ $ pacsyscleanDebian:~ $ sudo apt-get install debian-goodies~ $ dpigs -H
阅读全文
posted @
2014-07-26 19:20
eshizhan
阅读(298)
推荐(0)
Linux监控工具 (Linux Monitor Tools)
摘要:最近发现几个好用的工具,顺便总结下。 Zabbix和Nagios属于重量级,企业级Service procps-ng: top, free, ps, pgrep, vmstat ... sysstat: iostat, sar ... lsof, iftop, mtr, htop nmon:从AIX
阅读全文
posted @
2014-07-26 19:17
eshizhan
阅读(8232)
推荐(1)
The list of pre-build cross-compiler
摘要:Recently, I need compile toybox and busybox for my router.This is a list of cross-compiler for MIPS uClibc by google. http://www.uclibc.org/downloads/binaries/0.9.30.1/ http://landley.net/aboriginal/downloads/binaries/ https://github.com/KrabbyPatty/rtl819x-toolchain
阅读全文
posted @
2014-04-06 18:29
eshizhan
阅读(265)
推荐(0)
Extended VM Disk In VirtualBox or VMware (虚拟机磁盘扩容)
摘要:First, Clean VM all snapshot, and poweroff your VM.vmdk:vmware-vdiskmanager -x 16GB myDisk.vmdkvdi:VBoxManage modifyhd --resize And now, go to guest ...
阅读全文
posted @
2014-04-06 18:00
eshizhan
阅读(1017)
推荐(0)
一张图了解SSH端口转发
摘要:ssh和端口转发什么的,我就不想废话了,主要是ssh的命令格式真心不太好理解。网上也搜过相关文章,参差不齐。其实自己也理解怎么用,但我自己也表达不好。这几日无意碰到篇好文章,有图有真相,清楚的很,还有PDF,CC的,果断转了。感谢Dirk Loss![via]主要是Local Port Forwarding和Remote Port Forwarding。
阅读全文
posted @
2014-03-29 15:57
eshizhan
阅读(868)
推荐(0)
git+gitolite+cgit+apache on Ubuntu
摘要:git+gitolite+cgit+apache on UbuntuJust record, do *NOT* copy-paste.git+gitolitesudo apt-get install git openssh-serversudo adduser gitsu - gitgit clon...
阅读全文
posted @
2013-10-23 11:32
eshizhan
阅读(3010)
推荐(0)
wubi arguments
摘要:wubi arguments:form here or here. I coundn't found out wubi src address, you can tell me, if you know. ;)parser.add_option("--quiet", action="store_const", const="quiet", dest="verbosity", help="run in quiet mode, only critical error messages are disp
阅读全文
posted @
2013-04-01 16:47
eshizhan
阅读(264)
推荐(0)
screen couldn't read /etc/profile.d/*
摘要:EDIT:~/.screenrcshell -$SHELL
阅读全文
posted @
2013-03-06 09:39
eshizhan
阅读(299)
推荐(0)
Hg-Git on Debian problem
摘要:Q:Installing:sudo apt-get install mercurial-gitref: http://hg-git.github.com/EDIT:~/.hgrc[extensions]hgext.bookmarks =hggit = running:hg clone git://example.com/eg.gitabort: repository git://example.com/eg.git not found!What's happen?googling...a issue of 2 years ago:ref: https://github.com/scha
阅读全文
posted @
2013-02-22 00:18
eshizhan
阅读(402)
推荐(0)
Tmux Show CPU Usage And Memory Usage
摘要:EDIT:~/.tmux.confset -g status-interval 2set -g status-right "#(vmstat -SM 1 2 | awk 'END {print \"cpu:\"100-$15\"%\" \" mem:\"512-$4-$5-$6\"M\"}')#[default] %R""512" replace your total memory, e.g. 1024, 2048. get by "free -m&
阅读全文
posted @
2013-02-20 09:29
eshizhan
阅读(944)
推荐(0)
Linux命令行之农历
摘要:Chinese Calendar可输出EPS, PDF, PNG, JPEG格式,官网也算是个Online Tools,可直接生成下载各种格式的农历日历。下面是程序命令行参考:ccal version 2.5.3: Displays Chinese calendar (Gregorian with Chinese dates).Usage: ccal [-t|-p|-x] [-g|-b] [-u] [[<month>] <year>]. -t: Generates HTML table output. -p: Generates encapsulated PostScr
阅读全文
posted @
2013-01-17 23:03
eshizhan
阅读(1407)
推荐(1)
OpenResty -- Powered By Nginx & Lua
摘要:OpenResty是个有意思的项目,和Tengine有着很深的血缘关系。Nginx的兴起引起无数关注,较简单的接口造就了大量第三方modules,以至于利用这些modules可以直接开发应用。OpenResty就是在Nginx上做了一些优化,并加入了许多的第三方modules的一个项目,由大牛agentzh维护着。项目目的实际上是借助Nginx卓越的性能提升应用的性能,又由于使用Lua这类动态胶合语言,又使开发效率得到大大提升,可谓是鱼和熊掌可兼得之。成熟度上taobao的数据魔法使用这类技术实现的。如果你是个在浪潮之巅的小白鼠,建议尝试。来两个links:Nginx与Lua由Lua 粘合的N
阅读全文
posted @
2013-01-17 22:51
eshizhan
阅读(1382)
推荐(0)
利用pscp建立“右键发送到”菜单
摘要:利用PuTTY中的pscp可以向主机传文件,但每次都要敲命令和密码很麻烦。今天突然想到一个方法,百试不爽。在PuTTY目录下建立toLinux.bat批处理(改成你的自己的配置):@echo offecho pscp -P 2222 -pw ******** %* eshizhan@localhost:downloadpausepscp -P 2222 -pw yourpassword %* eshizhan@localhost:download在C:\Users\eshizhan\AppData\Roaming\Microsoft\Windows\SendTo下建立指向toLinux.bat
阅读全文
posted @
2012-10-24 12:09
eshizhan
阅读(259)
推荐(0)
分形图形神器XaoS
摘要:一看图边熟悉了吧,XaoS是生成分形图形的神器,帮助菜单下还有演示功能,有一段对分形图形的简介。详细描述:http://en.wikipedia.org/wiki/Mandelbrot_setP.S.有机会自己用Python实现下
阅读全文
posted @
2012-10-09 10:35
eshizhan
阅读(714)
推荐(0)