米狗

  • kubernets
  • docker
  • AWS
  • linux
  • nginx
Kratos
未分类

如何在#VMWare #ESXi 6.7上安装OpenWrt虚拟机充当旁路由

转载:https://xmanyou.com/vmware-esxi-install-openwrt/ 如何在#VMWare #ESXi 6.7上安装OpenWrt虚拟机充当旁路由 生命在于折腾~ 1. 从哪里下载OpenWrt固件 可以从很多地方下载OpenWrt,也可以选择自己编译。 本指南选用的是Lean的Openwrt版本,里边已经集成了一些常用的ipk插件。 选择已经编译好的固件: https://github.com/coolsnowwolf/lede/releases 关于这个版本的一些信息: 默认登…

2022年8月30日 0条评论 1551点热度 0人点赞 duhongjun 阅读全文
nginx

nginx重新编译添加新模块

nginx重新编译添加新模块 找到安装nginx的源码根目录,如果没有的话下载新的源码 http://nginx.org tar xvzf nginx-1.3.2.tar.gz 查看ngixn版本极其编译参数 /usr/local/nginx/sbin/nginx -V 进入nginx源码目录 cd nginx-1.3.2 以下是重新编译的代码和模块 ./configure --prefix=/usr/local/nginx--with-http_stub_status_module --with-http_ssl…

2022年8月28日 0条评论 625点热度 0人点赞 duhongjun 阅读全文
nginx

Nginx负载均衡中后端节点服务器健康检查

Nginx负载均衡中后端节点服务器健康检查 - 运维笔记(转发) 正常情况下,nginx做反向代理,如果后端节点服务器宕掉的话,nginx默认是不能把这台realserver踢出upstream负载集群的,所以还会有请求转发到后端的这台realserver上面,这样势必造成网站访问故障。虽然nginx可以在localtion中启用proxy_next_upstream来解决返回给用户的错误页面,如下: 例如公司的网站访问的时候全部变成404页面,最后发现是后端的一台服务器不可用,直接访问那台后台的服务器的时候,返回…

2022年8月28日 0条评论 507点热度 0人点赞 duhongjun 阅读全文
nginx

nginx 配置间接监控 udp 负载均衡健康检查

nginx 配置间接监控 udp 负载均衡健康检查 1.nginx 搭建 2.nginx.conf 文件的配置 user root; worker_processes 1; error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { server { listen 80; # status interface location /status { healthcheck_status h…

2022年8月28日 0条评论 622点热度 0人点赞 duhongjun 阅读全文
nginx

基于nginx proxy dns server

基于nginx proxy dns server 原理实际行就是stream模式,因为nginx 支持基于stream 模式的lb同时支持(tcp.udp)以下是一个简单的配置 环境准备 docker-compose 文件 version: "3" services: lb: image: openresty/openresty:alpine volumes: - "./nginx-lb.conf:/usr/local/openresty/nginx/conf/nginx.conf" - "./dns.log:/v…

2022年8月28日 0条评论 666点热度 0人点赞 duhongjun 阅读全文
nginx

nginx的log、upstream和server

nginx的log、upstream和server 一、log     首先一个log格式化的例子。 #配置格式main的log log_format main '$host $status [$time_local] $remote_addr [$time_local] $request_uri ' '"$http_referer" "$http_user_agent" "$http_x_forwarded_for" ' '$bytes_sent $request_time $sent_http_x_cache_…

2022年8月28日 0条评论 520点热度 0人点赞 duhongjun 阅读全文
nginx

Nginx 配置跨越支持

Nginx 配置跨越支持 用你最美的姿态,去「跨域」那座山。 在日常的开放中,我们经常遇到跨域的问题,常用的处理方式都是在代码层添加 cors 支持,但若你有 Nginx 配置权限,在 Nginx 上处理跨域将使得程序异常简单和高效。 代理 假设我们的前端域名为 example.com,API 服务架设在 api.example.com 域名下,那我们可以通过代理的形式来配置跨越请求,具体的配置为: 在 Nginx 的 example.com 虚拟主机文件中配置如下的代理 配置成功重启后,前端即可用 example…

2022年8月28日 0条评论 516点热度 0人点赞 duhongjun 阅读全文
nginx

Nginx log日志参数详解

$args #请求中的参数值 $query_string #同 $args $arg_NAME #GET请求中NAME的值 $is_args #如果请求中有参数,值为"?",否则为空字符串 $uri #请求中的当前URI(不带请求参数,参数位于$args),可以不同于浏览器传递的$request_uri的值,它可以通过内部重定向,或者使用index指令进行修改,$uri不包含主机名,如"/foo/bar.html"。 $document_uri #同 $uri $document_root #当前请求的文档根目录或…

2022年8月28日 0条评论 516点热度 0人点赞 duhongjun 阅读全文
nginx

企业nginx内网基础配置及目录跳转配置

nginx内网常规配置 ## THE IP ADDRESS OF "bpsrms.demo.com.local" ## upstream bpsrms.demo.com.local { server 10.99.11.141:6060; } ## THE SERVER INFOMATION OF "bpsrms.demo.com.local" ## server { listen 80; server_name bpsrms.demo.com.local; access_log /usr/local/nginx/l…

2022年8月28日 0条评论 571点热度 0人点赞 duhongjun 阅读全文
nginx

nginx四层代理配置

nginx支持4层代理,可以代理常规tcp/udp端口。 stream { log_format proxy '$remote_addr [$time_local]' '$protocol $status $bytes_sent $bytes_received' '$session_time "$upstream_addr" ' '"$upstream_bytes_sent" "$upstream_bytes_received" "$upstream_connect_time"'; access_log //app…

2022年8月28日 0条评论 546点热度 0人点赞 duhongjun 阅读全文
123

近期文章

  • nginx注册服务
  • vsftpd加密传输配置
  • vsftpd安装配置
  • keepalived注册服务
  • redis注册服务

近期评论

您尚未收到任何评论。

COPYRIGHT © 2024 米狗. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

沪ICP备2021019346号-1