hopeless-dream

导航

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页

2020年5月19日 #

kubernetes安装

摘要: 部署主机规划 IP地址 主机名 角色 10.0.0.50 master Master 10.0.0.51 node1 Node 10.0.0.52 node2 Node 10.0.0.53 node3 Node 1 环境准备 关闭SELinux [root@master ~]# getenforce 阅读全文

posted @ 2020-05-19 13:24 hopeless-dream 阅读(315) 评论(0) 推荐(0) 编辑

kubernetes介绍

摘要: kubernetes架构 Master 控制节点 master是集群的控制节点,每个集群都至少要有一个Master管理和控制集群。所有执行的命令都在Master上运行。Master要独立部署在一台服务器上(为了解决单点故障,至少需要三台) Master节点运行了三个重要进程: (1)kube-api 阅读全文

posted @ 2020-05-19 11:16 hopeless-dream 阅读(159) 评论(0) 推荐(0) 编辑

2020年5月18日 #

Nginx——stream模块

摘要: nginx从1.9.0开始,新增加了一个stream模块,用来实现四层协议的转发、代理或者负载均衡等 stream模块的用法和http模块差不多,语法基本一致,支持server,hash, listen, proxy_pass等指令, 配置实例如下: worker_processes auto; e 阅读全文

posted @ 2020-05-18 16:58 hopeless-dream 阅读(7568) 评论(1) 推荐(0) 编辑

Nginx——文件路径配置

摘要: 文件路径的定义 以root方式设置资源路径 语法:root path; 默认:root html; 配置块:http、server、location、if location /data/ { root /web/html; } 如果请求的URI是/data/index/test.html,那么web 阅读全文

posted @ 2020-05-18 12:25 hopeless-dream 阅读(2929) 评论(0) 推荐(0) 编辑

Nginx——HTTP核心模块

摘要: HTTP核心模块——ngx_http_core_module HTTP配置项都必须直属于http块、 server块、 location块、 upstream块或 if块等。一个server块就是一台虚机主机,她只处理与之相对应的域名的请求。 域名通过server块中的server_name指定。 阅读全文

posted @ 2020-05-18 11:51 hopeless-dream 阅读(267) 评论(0) 推荐(0) 编辑

Nginx优化性能配置项

摘要: 优化性能的配置项 worker进程数 语法: worker_processes number; 默认: worker_processes 1; 一般配置为与主机的CPU核数相等。并且使用下面的worker_cpu_affinity配置来绑定CPU内核 worker进程绑定到指定CPU核心 语法: w 阅读全文

posted @ 2020-05-18 10:56 hopeless-dream 阅读(149) 评论(0) 推荐(0) 编辑

Nginx----运行的配置项

摘要: 运行的配置项 嵌入其他配置文件 语法: include pathfile; pathfile可以是绝对路径,也可以是相对路径,相对于nginx.conf而言。 worker进程运行的用户和用户组 语法: user username [groupname]; 默认: user nobody nobod 阅读全文

posted @ 2020-05-18 10:54 hopeless-dream 阅读(135) 评论(0) 推荐(0) 编辑

Nginx事件类配置项

摘要: 事件类配置项 是否打开accept锁 语法: accept_mutex[on|off] 默认: accept_mutext on; accept_mutex是Nginx的负载均衡锁 ,accept_mutex这把锁可以让多个worker进程轮流地、序列化地与新的客户端建立TCP连接。 当某一个wor 阅读全文

posted @ 2020-05-18 10:49 hopeless-dream 阅读(201) 评论(0) 推荐(0) 编辑

HAProxy的配置详解

摘要: 1.1 全局配置 global配置中的参数为进程级别的参数,且通常与其运行的OS相关 进程管理及安全相关的参数 - chroot <jail dir>:修改haproxy的工作目录至制定的目录并在放弃权限之前执行chroot()操作,可以提升haproxy的安全级别,不过需要注意的是要确保指定的目录 阅读全文

posted @ 2020-05-18 00:43 hopeless-dream 阅读(458) 评论(0) 推荐(0) 编辑

HAProxy的安装和配置

摘要: 1.1 地址规划 主机1 名称 地址 haproxy代理服务器 haproxy 10.0.0.41/172.16.1.41 web服务器1 haproxy2 10.0.0.42/172.16.1.42 web服务器2 haproxy3 10.0.0.43/172.16.1.43 1.2 安装hapr 阅读全文

posted @ 2020-05-18 00:40 hopeless-dream 阅读(624) 评论(0) 推荐(0) 编辑

上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 31 下一页