Linux Net Tools

## ethtool Parameters Parameter Description ethX 查看ethx网口基本设置。其中x是对应网卡的编号,如eth0、eth1等 -k 查询网卡的Offload信息 -K 修改网卡的Offload

Gohugo Usage

Command 1 2 3 4 5 6 7 8 9 # init theme submodule git submodule update --init --recursive # start server hugo server hugo server -D # include draft # create new post hugo new content/post/gohugo.md

Distributed Lock

分布式应用进行逻辑处理经常会遇到并发问题。 比如一个操作要修改用户的状态,修改状态需要先读出用户的状态,在内存里修改完再存回去。如果这样的操作

3 Cache Problems

缓存雪崩(Cache Avalanche) 大量缓存数据同一时间失效,或者cache服务出现问题(如重启、宕机等),因此所有请求冲向数据库,导致数据库被打死,系统

Docker

Docker 安装Docker(Ubuntu) 1 sudo apt install docker.io 配置加速地址 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 # 在Ubuntu16.04

Favorites

Tool Title PasteBin Work Title 木及简历 Blog Title 苏丙榅的博客 JOEL ON SOFTWARE 云风的BLOG 欧长坤的博客 美团技术博客 小米信息部技术团队

curl

User-Agent 1 2 3 # -A # --user-agent curl -A myagent http://localhost Show Response Header 1 2 3 # -i 显示Response的头信息,连同网页代码一起 # -I 只显示Response的头信息 curl -i http://localhost 显示通信过程 1

Cron

crond服务的管理与访问控制 启动/重启 service crond start/restart chkconfig crond on systemctl start/restart/status crond 用户的crontab设置 1 crontab [选项] 选项 -e 编辑crontab定时任务 -l 查询 cron