Centos7安装Nginx或OpenResty# Centos7 安装 Nginx 或 OpenResty ## 一、 源码安装 Nginx ### 1. 首先在 Centos7 上安装编译器和依赖环境 # yum install gcc-c++ gcc # yum install pcre pcre-devel # yum install zlib zlib-devel # yum install openssl openssl-devel openssl-devel 说明:gcc/gcc-c++是编译器,nginx的http模块要用pcre来解析正则表达式,nginx要用zlib对http内容进行压缩/解压缩,nginx还要用到ssl模块(openssl) ### 2. 下载 nginx 源代码并编译安装 在 https://nginx.org/en/download.html 查看各个版本的下载地址,选择目标版本,复制下载地址,然后在 centos7 centos7 上下载(或者在其他地方下载再复制到 centos7 系统里) # wget -c https://nginx.org/download/nginx-1.18.xx.tar.gz //下载源代码压缩包 # ./configure --prefix=/usr/local/nginx \ --with-http_stub_status_module \ --with-http_ssl_module0 码力 | 7 页 | 153.82 KB | 2 年前3
Apache APISIX 在金山办公的开发和落地实践在金山办公的开发和落地实践 张强 金山办公 ## CONTENT 01 前情回顾&增补 02 关于 OpenResty 和 Lua 的思考 03 基于 Apache APISIX 破局 04 解决 Nginx 带来的问题 ## 01 ## & About • 金山办公云原生应用组流量网关 Lead Developer - 金山办公作为 Apache APISIX 较早的受益者,使用Apache 异步 线上问题难以调试 • 多进程间同步效率低 - 以nginx-lua-prometheus为例 (https://github.com/knyar/nginx-lua-prometheus/issues/107) ## apache apisix ## 关于 OpenResty 和 Lua 的思考 Lua + Nginx = 难上加难,左右为难 ## 03 基于 Apache APISIX of software engineering (FTSE) ## apache apisix ## 基于 Apache APISIX 破局 What about… Rust + Lua + Nginx? 让 Lua 回归胶水本质! ## apache apisix 基于 Apache APISIX 破局 ## How ? 基于Lua的C API(lua_*), 构建原生lua模块,产物为一个Shared0 码力 | 27 页 | 4.88 MB | 2 年前3
基于 Apache APISIX 的下一代微服务架构 -- 从 0 到 1:APISIX 的 Apache 之路[Image](/uploads/documents/e/8/4/7/e84711086fba98bcabbdca945632670f/p9_2.jpg) ## 微信搜一搜 APISIX 微服务网关 讨论:Nginx 的版权问题 ## 基于 Apache APISIX 的 下一代微服务架构 温铭 wenming@apache.org ## 大纲 • Apache APISIX 是什么? • Apache /8/4/7/e84711086fba98bcabbdca945632670f/p12_1.jpg) ## Apache APISIX 是什么? - 云原生微服务 API 网关 - 基于 Nginx 和 etcd 实现 • 集成了控制面和数据面 - 提供灵活的插件机制 - 动态上游、动态路由、插件热加载  ## API 网关的传统功能 - 让 API 请求更安全、更高效的得到处理 - 覆盖 Nginx 的所有功能:反向代理、负载均衡 - 动态上游、动态 SSL 证书、动态限流限速 • 主动/被动健康检查、服务熔断 ## 云原生下的新功能 • 对接 Prometheus、Zipkin、Skywalking0 码力 | 33 页 | 1.55 MB | 2 年前3
Traefik 在⼜拍云的应⽤和改造Open Ta//k 公开课 # Traefik 在又拍云的应用和改造 陈卓 又拍云系统开发工程师 又拍云 ## 分享内容 - Traefik 简介 - Traefik 跟 Ingress-Nginx 比较 - 我们为什么使用 Traefik - Traefik 改造之路 ## Traefik 简介 ## traffic " \ 4 nginx ## Traefik 配置提供者 —Provider |Provider|Type|Configuration Type| |---|---|---| |Docker|Orchestrator|Label| |File|Manual|TOML/YAML format| |Consul|KV|KV| |etcd|KV|KV| |Redis|KV|KV| |ZooKeeper|KV|KV| ## I ngress-Nginx 介绍 • Ingress-Nginx: K8S 官方的 Http 网关产品 • Ingress 配置:指的是 K8S 的 Ingress 的 configmap Ingress 配置 :通过Dockerfile描述如何把应用打包成一个自包含的单元 镜像构建(Build):执行 docker build,Docker0 码力 | 754 页 | 16.71 MB | 2 天前3
Kubernetes开源书 - 周立验证2:部署一个NGINX # 启动一个单节点nginx ]# kubectl run nginx --image=nginx:1.7.9 --port=80 # 为“nginx”服务暴露端口 ]# kubectl expose deployment nginx --type=NodePort # 查看nginx服务详情 ]# kubectl get svc nginx NAME TYPE TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE nginx NodePort 10.233.29.9680:32345/TCP 14s # 访问测试,如果能够正常返回NGINX首页,说明正常 ]# curl localhost:32345 ## 卸载 ]# ansible-playbook -i inventory/mycluster/hosts.ini Deployment metadata: name: nginx-deployment spec: replicas: 3 template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 0 码力 | 135 页 | 21.02 MB | 2 年前3
Docker 从入门到实践 v1.7.5镜像相关 ○ 容器相关 ○ 仓库相关 ○ 配置相关 ○ Docker 与虚拟化 ○ 其它 • 附录二:热门镜像介绍 附录二:热门镜像介绍 ○ 目录 ○ Ubuntu ○ CentOS ○ Nginx ○ PHP ○ Node.js ○ MySQL ○ WordPress ○ MongoDB ○ Redis ○ Minio 附录三:Docker 命令查询 ○ 基本语法 ○ 客户端命令 - docker 本节将通过一个简单的Web应用例子,带你快速体验Docker的核心流程:构建镜像、运行容器。 为什么选择 Nginx + HTML 作为入门例子? 在学习 Docker 之前,我们先来理解为什么这个例子是最适合初学者的。Docker 的核心价值在于一致性交付——无论你在本地、云端还是他人的机器上运行容器,应用的行为都是完全一致的。这个 Nginx + 静态 HTML 的例子之所以被广泛采用,是因为它展现了 Docker 工作流的三个核心阶段: 镜像构建(Build):执行 docker build,Docker 根据 Dockerfile 逐层构建镜像 容器运行(Runtime):通过 docker run 启动容器实例,应用真正开始提供服务 Nginx 是一个轻量级、使用广泛的 Web 服务器,学习完这个例子后,你可以轻松扩展到部署 Node.js、Python、Go 等任何语言的应用。 1.1.1准备代码 创建一个名为 hello-docker0 码力 | 739 页 | 15.90 MB | 2 天前3
Docker 从入门到实践 v1.7.0目录 • 附录一:常见问题与错误速查 • 镜像相关 • 容器相关 • 仓库相关 • 配置相关 • Docker 与虚拟化 • 其它 • 附录二:热门镜像介绍 • Ubuntu • CentOS • Nginx • PHP • Node.js • MySQL • WordPress • MongoDB • Redis • Minio 附录三:Docker 命令查询 基本语法 客户端命令 - dockerHello, Docker!
1.1.2 编写 Dockerfile 在同级目录下创建一个名为 Dockerfile (无后缀) 的文件: FROM nginx:alpine COPY index.html /usr/share/nginx/html/index.html 1.1.3 构建镜像 打开终端,进入该目录,执行构建命令: $ docker build -t my-hello-world Docker 镜像是一个特殊的文件系统,包含: 内容类型 示例 程序文件 应用二进制文件、Python/Node解释器 库文件 libc、OpenSSL、各种依赖库 配置文件 nginx.conf、my.cnf等 环境变量 PATH、LANG等预设值 元数据 启动命令、暴露端口、数据卷定义 关键特性: 镜像是只读的 镜像不包含动态数据 镜像构建后 内容不会改变0 码力 | 746 页 | 14.69 MB | 2 天前3
North-South Load Balancing
of Kubernetes Services with
eBPF/XDP"default/nginx-59: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.96.61.252/32 -p tcp -m comment --comment "default/nginx-64: has no "default/nginx-67: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.98.85.41/32 -p tcp -m comment --comment "default/nginx-9: has no endpoints" "default/nginx-17: has no endpoints" -m tcp --dport 80 -j REJECT --reject-with icmp-port-unreachable -A KUBE-SERVICES -d 10.106.49.80/32 -p tcp -m comment --comment "default/nginx-37: has no0 码力 | 11 页 | 444.46 KB | 1 年前3
Deploying and ScalingKubernetes with Rancher
controller with 4 replicas and nginx version 1.7.9. Wait for the replication controller to bring all 4 pods up: apiVersion: v1 kind: ReplicationController metadata: name: my-nginx spec: replicas: 4 template: template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80 Once the RC is up, let's go to the kubectl web console open the replication controller section in another browser tab. kubectl rolling-update my-nginx -image=nginx:1.9.1 You will notice in the logs that Kubernetes decided to deploy only one pod at a time0 码力 | 66 页 | 6.10 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













