转载自:http://vivo.pub/2129
在mac os下面ssh到服务器来进行vi操作,因为键盘的局限性,没有PageUp/PageDown/Home/End,会严重影响效率。
其实替代方案也很简单,用vim自己的快捷键就成了。
例如:Ctrl-F(Forward) 相当于 PageDown,Ctrl-B(Backward)相当于PageUp。
再比如:^ 相当于Home,$ 相当于End(意义来自正则表达式)。
这回效率提升上去了吧;)[......]
转载自:http://vivo.pub/2129
在mac os下面ssh到服务器来进行vi操作,因为键盘的局限性,没有PageUp/PageDown/Home/End,会严重影响效率。
其实替代方案也很简单,用vim自己的快捷键就成了。
例如:Ctrl-F(Forward) 相当于 PageDown,Ctrl-B(Backward)相当于PageUp。
再比如:^ 相当于Home,$ 相当于End(意义来自正则表达式)。
这回效率提升上去了吧;)[......]
brew install https://gist.githubusercontent.com/chrislusf/8b4e7c19551ba220232f037b43c0eaf3/raw/01465b867b8ef9af7c7c3fa830c83666c825122d/thrift.rb
[......]
# 替换brew.git:
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
# 替换homebrew-core.git:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core[......]
https://tate-young.github.io/2019/04/24/google-analytics.html[......]
1 查看所有索引
GET /_cat/indices?v
2 集群状态监控
GET _cluster/health
3 集群某索引的详细统计信息
GET /index-name/_stats
4 查看索引的分片在不同结点之间的分布
GET _cat/shards/索引名
5 索引的统计信息
GET _all/_stats
6 查看索引mapping
GET /index-name/_mapping?pretty
7 给索引mapping添加字段
POST /index-[......]