上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 102 下一页
摘要: http的访问测试 [root@localhost ~]# curl -I --proxy 192.168.10.10:80 www.baidu.com HTTP/1.1 200 OK Server: nginx/1.12.1 Date: Mon, 11 Jun 2018 15:37:47 GMT 阅读全文
posted @ 2020-06-28 10:58 Oops!# 阅读(2110) 评论(0) 推荐(0)
摘要: 本文主要讲解访问kubenretes中的Pod和Serivce的几种方式,包括如下几种: hostNetwork hostPort NodePort LoadBalancer Ingress 说是暴露Pod其实跟暴露Service是一回事,因为Pod就是Service的backend。 hostNe 阅读全文
posted @ 2020-06-27 15:42 Oops!# 阅读(1727) 评论(1) 推荐(0)
摘要: 出于安全考虑,默认配置下Kubernetes不会将Pod调度到Master节点。如果希望将k8s-master也当作Node使用,可以执行如下命令: kubectl taint node k8s-master node-role.kubernetes.io/master- 其中k8s-master是 阅读全文
posted @ 2020-06-27 15:28 Oops!# 阅读(893) 评论(0) 推荐(0)
摘要: 版本回滚 回滚到第一次的版本: helm rollback --debug mysql 1 [debug] Created tunnel using local port: '60303' [debug] SERVER: "localhost:60303" Rollback was a succes 阅读全文
posted @ 2020-06-24 10:01 Oops!# 阅读(3249) 评论(0) 推荐(0)
摘要: 使用openshift搭建的k8s的api创建Deployment,在启动的时候报下面的错误: Invalid value: “hostPath”: hostPath volumes are not allowed to be used] 解决方案: 一个方案是将user加入privileged s 阅读全文
posted @ 2020-06-22 19:06 Oops!# 阅读(727) 评论(0) 推荐(0)
摘要: 检查 GeoIP 是否安装 首先需要确认当前安装的 Nginx 是否安装了 GeoIP 模块 123456 $ nginx -Vnginx version: nginx/1.12.2built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)built w 阅读全文
posted @ 2020-06-17 11:15 Oops!# 阅读(752) 评论(0) 推荐(0)
摘要: 要求nginx版本大于1.9,在nginx.conf添加以下,要求和http{}同级在这里插入图片描述 vi socket_proxy.confstream { upstream redis { server *redis-addres*:6379 max_fails=3 fail_timeout= 阅读全文
posted @ 2020-06-16 14:36 Oops!# 阅读(1449) 评论(0) 推荐(0)
摘要: server { listen 8080; location / { root /data/nginx/html; open_file_cache max=10 inactive=60s; #max指定缓存的最大文件数, 超出会根据lru列表就行淘汰,inactive=60s表示如果60s后文件没有 阅读全文
posted @ 2020-06-15 12:27 Oops!# 阅读(445) 评论(0) 推荐(0)
摘要: nginx-http-concat 是一个 Nginx 扩展模块,用来合并 HTTP 请求。 # 1. 下载 访问 https://github.com/alibaba/nginx-http-concat/releases 官网下载最新的源包,如: # 下载 wget https://github. 阅读全文
posted @ 2020-06-14 21:07 Oops!# 阅读(514) 评论(0) 推荐(0)
摘要: 接上篇使用 Linux命 令来分析。使用命令太麻烦,既不快捷又不直观,市面上有不少现成的工具可以使用,比如 ELK。但 ELK 太重了,这里使用的是比较轻量的 goaccess。 接收日志 goaccess 是直接对日志文件进行分析,首先要获得日志文件。nginx 原生支持将日志发送到远程 sysl 阅读全文
posted @ 2020-06-14 14:23 Oops!# 阅读(633) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 102 下一页