摘要: nginx 配置 root@ranchers1:/etc/nginx/sites-enabled# cat alexserver { listen 801; listen [::]:801; root /var/www/html; index index.html index.htm index.n 阅读全文
posted @ 2019-11-27 14:43 alexhe 阅读(465) 评论(0) 推荐(0)
摘要: localhost.crt-bakvim /etc/netplan/50-cloud-init.yaml 写入网卡 root@master:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information 阅读全文
posted @ 2019-11-21 10:17 alexhe 阅读(652) 评论(0) 推荐(0)
摘要: 20200616一篇es的好文: https://www.cnblogs.com/cjsblog/p/9495024.html es下载: https://thans.cn/mirror/elasticsearch.html 3台es集群 ▷ elasticsearch 7.3.2▷ filebea 阅读全文
posted @ 2019-11-18 14:03 alexhe 阅读(1179) 评论(0) 推荐(0)
摘要: 查看filename中含有abc所在行后4行内容 cat filename | grep abc -A4 查看filename中含有abc所在行前4行内容 cat filename | grep abc -B4 2种方法打印匹配行的前后5行 grep -5 '关键字' 文件名 grep -C 5 ' 阅读全文
posted @ 2019-11-12 11:14 alexhe 阅读(210) 评论(0) 推荐(0)
摘要: 【编者的话】用了Docker,好处挺多的,但是有一个不大不小的问题,它会一不小心占用太多磁盘,这就意味着我们必须及时清理。作为一个有信仰的技术公司,我们Fundebug的后台采用了酷炫的全Docker化架构,所有服务,包括数据库都运行在Docker里面。这样做当然不是为了炫技,看得清楚的好处还是不少 阅读全文
posted @ 2019-11-12 10:08 alexhe 阅读(727) 评论(0) 推荐(0)
摘要: deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted univ 阅读全文
posted @ 2019-11-11 09:48 alexhe 阅读(2434) 评论(0) 推荐(0)
摘要: 查看有哪些索引和建索引的语句:select * from pg_indexes where tablename='student_class_hour_report_view';-- 查出所有物化视图和表,索引大小并排序: SELECT inet_server_addr() AS instance_ 阅读全文
posted @ 2019-11-09 16:38 alexhe 阅读(1043) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-10-28 23:26 alexhe 阅读(5) 评论(0) 推荐(0)
摘要: 架构设计图:etcd保存了整个集群的状态; apiserver提供了资源操作的唯一入口,并提供认证、授权、访问控制、API注册和发现等机制; controller manager负责维护集群的状态,比如故障检测、自动扩展、滚动更新等; scheduler负责资源的调度,按照预定的调度策略将Pod调度 阅读全文
posted @ 2019-09-20 10:39 alexhe 阅读(194) 评论(0) 推荐(0)
摘要: master:kubectl操作api-server 增删改查,scheduler调度 ,controller manager控制应用副本,etcd存储应用状态 node:pod,kube-proxy Master:集群控制节点,负责整个集群的管理和控制。 API Server: 提供接口,资源增删改查入口。 Controller Manager: 所有资源对象的自动化控制中心。 Sched... 阅读全文
posted @ 2019-08-31 01:34 alexhe 阅读(328) 评论(0) 推荐(0)