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...
MySQL 索引 失效2017-11-24Inbox‘MySQL 索引 失效’ http://www.jianshu.com/p/932bcdf2c89f 索引并不会时时发生,有时就算是where查询字段中添加了索引,索引也会失效,下面我们来讲讲五种索引失效的场景。 1.Read more...
go, time.Tick, tick immediately2017-11-23Inbox‘go, time.Tick, tick immediately’ How to get time.Tick to tick immediately 1 2 3 4 ticker := time.NewTicker(period) for ; true; <-ticker.C { ... } https://stackoverflow.com/questions/32705582/how-to-get-time-tick-to-tick-immediately/47448177#47448177 https://github.com/golang/go/issues/17601Read more...
慢查询优化2017-11-22Inbox慢查询优化 https://tech.meituan.com/MySQL-index.html 慢查询优化基本步骤 0.先运行看看是否真的很慢,注意设置SQL_NO_CACHE 1.where条件单表查,锁定最小返回记录表。这句Read more...