网卡命名规则2017-12-20network网卡命名规则 Predictable Network Interface Names 可预测的网络接口命名 自从 v197 systemd/udev 开始,系统可以为本地的 Ethernet、WLAN和WWAN接口自动地分配可预测的、稳定的网络Read more...
redis pub sub2017-12-18Inboxredis pub sub PubSub 的缺点 尽管 Redis 实现了 PubSub 模式来达到了 多播消息队列 的目的,但在实际的消息队列的领域,几乎 找不到特别合适的场景,因为它的缺点十分明显: 没有 AckRead more...
glide2017-12-18Inboxglide 1 2 3 4 5 sudo pacman -S glide glide install https://github.com/Masterminds/glideRead more...
DNS2017-12-17NetworkDNS DNS的本质是什么? Domain Name System = DNS (域名系统) 其实是一个数据库,是用于 TCP/IP 程序的分布式数据库,同时也是一种重要的网络协议。DNS储存了网络中的 IPRead more...
nmap, 网络 扫描2017-12-16networknmap, 网络 扫描 params 1 2 -v verbose -p port install nmap 1 apt install nmap 扫描一个网段 (使用 ping) 1 2 nmap -sn xx.xx.xx.xx/24 nmap -sn 192.168.50.0/24 -sn, -sP: -sP 是 -sn 的别名, ping scan, nmap 发现主机之后不扫描端口, 直接返回 主机 IP 地址,Read more...
nc 命令检查远程端口是否打开2017-12-16Inboxnc 命令检查远程端口是否打开 https://linux.cn/article-8186-1.html 使用 nc 命令检查远程端口是否打开 编译自: http://www.tecmint.com/check-remote-pRead more...
test for a specific port from Linux, shell>telnet >netcat > Socat2017-12-16Inboxtest for a specific port from Linux, shell> telnet> netcat> socat 使用 Telnet 验证端口的连通性 打开命令行模式。具体方法,请参考打开命令或 Shell 提示符 (2076587) (Opening a command or shell prompt (1003892))。 在命令行窗Read more...
CGI2017-12-16InboxCGI CGI: 全拼(Common Gateway Interface)是能让web服务器和CGI脚本共同处理客户的请求的协议。Web服务器把请求转成CGI脚本,CGIRead more...
QUIC2017-12-16networkQUIC 读作 “quick” QUIC (Quick UDP Internet Connection) Quic 是一个通用的基于UDP的传输层网络协议, 其目的是为了在网络层代替 TCP。 QUIC旨在提供几乎等同于TRead more...
linux shell ctrl – s2017-12-14shelllinux shell ctrl – s ctrl+c 结束正在运行的程序【ping、telnet等】 ctrl+d 结束输入或退出shell ctrl+s 暂停屏幕输出 ctrl+q 恢复屏幕输出 ctrl+l 清屏,【是字母L的小写】等Read more...
linux git gui2017-12-06Inboxlinux git gui https://git-scm.com/book/zh/v2/Appendix-A%3A-%E5%85%B6%E5%AE%83%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%9A%84-Git-%E5%9B%BE%E5%BD%A2%E7%95%8C%E9%9D%A2 1 2 3 4 5 gitk git guiRead more...
git proxy2017-12-06gitgit proxy 1 2 3 4 5 6 7 8 9 10 11 12 # http proxy git config http.proxy 'http://192.168.50.xx:80' git config --global http.proxy http://proxy.mycompany:80 # socks5 proxy # project git config http.proxy 'socks5://192.168.50.4:10800' git config https.proxy 'socks5://192.168.50.4:10800' # global git config --global http.proxy 'socks5://192.168.50.90:1080' git config --global https.proxy 'socks5://192.168.50.90:1080' 1 2 3 4 5 git config --global --unset http.proxy git config --global --unset https.proxy npm config delete proxy https://gist.Read more...
ipv62017-12-04Inboxipv6 https://www.polarxiong.com/archives/%E6%90%AD%E5%BB%BAipv6-VPN-%E8%AE%A9ipv4%E4%B8%8Aipv6-%E4%B8%8B%E8%BD%BD%E9%80%9F%E5%BA%A6%E6%8F%90%E5%8D%87%E5%88%B0100M.html 禁用 ipv6 1 2 3 4 5 vim /etc/sysctl.d/ipv6.conf #disable ipv6 ipv6.disable=1 https://wiki.archlinux.org/title/IPv6#Disable_IPv6Read more...
monit2017-11-27Inboxmonit 监控进程 发表于2015-02-11 有时候,进程突然终止服务,可能是没有资源了,也可能是意外,比如说: 因为 OOM 被杀;或者由于 BUG 导致崩溃;亦或者Read more...
journal, journalctl, syslog2017-11-24Linuxjournal, journalctl, syslog 1 2 # -u 指定 unit journalctl -u file-server 清理磁盘空间 1 2 3 4 5 6 7 8 9 # Check current disk usage of journal files sudo journalctl --disk-usage # Delete journal logs older than 5 days: sudo journalctl --vacuum-time=5days # Delete log files until the disk space taken falls below 200M: sudo journalctl --vacuum-size=200M # Delete old logs andRead more...
MySQL数据和索引占用空间查询2017-11-24InboxMySQL数据和索引占用空间查询 http://blog.csdn.net/light_language/article/details/70567962 关于查数据库和表中的数据和索引所占空间的大小的SQL方法: 查询information_schema架构中的Read more...
前缀索引2017-11-24Inbox前缀索引 http://www.cnblogs.com/studyzy/p/4310653.html 前缀索引,一种优化索引大小的解决方案 今天在读一篇关于数据库索引介绍的文章时,该文章提到了前缀索引,对于我这个搞数据库应用开发那么多Read more...
MySQL SQL_NO_CACHE,sql_cache,RESET QUERY CACHE2017-11-24InboxMySQL SQL_NO_CACHE,sql_cache,RESET QUERY CACHE http://blog.csdn.net/xlgen157387/article/details/50767725 http://blog.51cto.com/janephp/1318705 减少碎片: 合适的query_cache_min_res_unit可以减少碎片,这个参数最合适的大小和应用程序查询结果的平均大小直Read more...
karma2017-11-24Inboxkarma JavaScript 作为 web 端使用最广泛的编程语言,它是动态语言,缺乏静态类型检查,所以在代码编译期间,很难发现像变量名写错,调用不存在的方法等错误,除非在运Read more...