上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
  2019年3月25日
摘要: http://www.cnblogs.com/cocowool/p/kubeadm_install_kubernetes.html https://www.kubernetes.org.cn/doc-16 基于Kubeadm部署Kubernetes1.13.3 HA 高可用集群案例: https:/ 阅读全文
posted @ 2019-03-25 15:13 可口_可乐 阅读(4430) 评论(0) 推荐(0) 编辑
  2019年3月17日
摘要: 一、elk架构已经完成情况情况下 访问限制: 加个x-pack插件 1)一个脚本收集多个日志,if 判断写入es的索引 [root@k8s6 conf.d]# cat file.conf input { file{ path => ["/var/log/messages", "/var/log/se 阅读全文
posted @ 2019-03-17 15:17 可口_可乐 阅读(2899) 评论(0) 推荐(0) 编辑
  2019年3月14日
摘要: 一、nginx.conf的配置方式,创建新vhost 1)nginx的安装编译方式 常用优化配置 user nginx; worker_processes 4; worker_cpu_affinity 00000001 00000010 00000100 00001000; worker_rlimi 阅读全文
posted @ 2019-03-14 17:45 可口_可乐 阅读(355) 评论(0) 推荐(0) 编辑
  2019年2月14日
摘要: lscpu 一、top命令详解 1)执行命令top 各个参数解释 2)各个cpu核数查看,按1 3)各个进场默认是按照cpu的用量进行排序的 查看最高内存占用者: 敲击键盘b(打开/关闭加亮效果) 4)敲击键盘x(打开/关闭排序列的加亮效果) 通过shift + >或shift + <可以向右或左改 阅读全文
posted @ 2019-02-14 17:26 可口_可乐 阅读(951) 评论(0) 推荐(0) 编辑
  2019年1月11日
摘要: 一、python简单rabbitmq消息队列(消息不安全,不持久化) pip install pika 1)发送端 import pika # rabbitmqctl set_permissions -p / rabbitadmin ".*" ".*" ".*" 注意创建用户后,一定要授权 cred 阅读全文
posted @ 2019-01-11 01:45 可口_可乐 阅读(375) 评论(0) 推荐(0) 编辑
  2018年12月24日
摘要: 一、gitlab的安装 1)安装依赖包 sudo yum install git vim gcc glibc-statc telnet -y sudo yum install -y curl policycoreutils-python openssh-server sudo systemctl e 阅读全文
posted @ 2018-12-24 11:04 可口_可乐 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 、Jenkins安装 1)Jenkins介绍 1)一个自动构建过程,包括自动编译,分发,部署和测试,是持续的软件版本发布,测试项目 2)一个代码存储库,即需要版本控制软件来保障代码的可维护性,同时作为构建过程的素材库,例如svn,git代码库 3)监控外部调用执行的工作 2)Jenkins的安装环境 阅读全文
posted @ 2018-12-24 11:01 可口_可乐 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 一、实现前后端分离,前后端数据交互均已json字符串形式 路由模式,FBV. ==> url(r'^books/', views.books), 1)使用原生的json模型 # 请求 http://127.0.0.1:8000/books/ # [{"name": "python", "price" 阅读全文
posted @ 2018-12-24 11:00 可口_可乐 阅读(720) 评论(0) 推荐(0) 编辑
摘要: 一、web_ssh版本安装使用 web_ssh源码:https://github.com/shellinabox/shellinabox 1)安装依赖包 2)github下载源码 3)执行操作 4)编译安装 5)启动 网页打开,注意防火墙问题 特别强调。root账号不支持登陆 阅读全文
posted @ 2018-12-24 10:55 可口_可乐 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 一、rest-framework之频率控制 为了控制用户对某个url请求的频率,比如,一分钟以内,只能访问三次 1)自定义模式,其他框架调使用也是如此 自定义频率逻辑 # (1)取出访问者ip # (2)判断当前ip不在访问字典里,添加进去,并且直接返回True,表示第一次访问,在字典里,继续往下走 阅读全文
posted @ 2018-12-24 10:51 可口_可乐 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页