fail2ban fail2 nginx fail

nginx 一个域名区分pc和手机!

location / { set $root '/usr/share/nginx/html/pc/dist'; # 这部分校验可以改! if ( $http_user_agent ~ "(MIDP)|(WAP)|(UP.Browser)|(Smartphone)|(Obigo)|(Mobile)|( ......
域名 手机 nginx

安装npm install报错npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npmjs.org/webpack-subresource-integrity failed, reason

执行命令:npm run dev 启动前端项目报如下错误,vue-cli-service是Vue一个启动的插件,需要安装 D:\nodejs\npm.cmd run dev > yuntan1hao@2.0.0 dev > vue-cli-service serve --open 'vue-cli- ......

nginx启用HTTP2特性

本文于2017年2月底完成,发布在个人博客网站上。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 查看当前nginx的编译选项 #./nginx -V nginx version: nginx/1.9.15 built by gcc 5.4.0 20160609 ( ......
特性 nginx HTTP2 HTTP

nginx代理header丢失的问题

header名称中如果有下线,如:j_roadFlow_loginToken 则在nginx配置文件中一定要加上: underscores_in_headers on; #这里是on,不然无法传递带下划线的header ......
header 问题 nginx

Nginx——配置代理-服务的代理

docker 容器的配置 docker run --name nginx-t -p 1234:8099 -d nginx:bitmap 命令 -p 是用来进行端口映射的,它可以穿透防火墙的限制,将容器内部的端口映射到宿主机(主机)的对应端口上, 从而可以通过宿主机访问容器内部的应用服务 这个命令将运 ......
Nginx

"nginx.conf" E514 : write error (file system full?)

出现这段提示,可以先看看磁盘空间是不是满了 不看不知道,一看吓一跳,什么时候我的业务这么丰富了 下面开始查看哪个位置占用空间了 查看各目录大小 du -h --max-depth=1 / 再次确认详细的地方 du -h --max-depth=1 /home 这里就确认了具体的位置 这个时候先删除m ......
quot system nginx error write

YAML示例:nginx使用configmap配置并开启镜像

# use nginx to be a proxy, mirror each request to other services, 10.96.2.58 send back the reponse to user client. m1 and m2 just mirror the request, ......
示例 configmap 镜像 nginx YAML

nginx反向代理时报no resolver defined to resolve

错误日志 2024/01/11 05:29:22 [error] 29#29: *44 no resolver defined to resolve www.test.com, client: 127.0.0.1, server: _, request: "GET /test/123 HTTP/1. ......
resolver 时报 defined resolve nginx

Nginx长连接学习之二

Nginx长连接学习之二 背景 距离最开始学习Nginx的长连接已经一年半; 距离最开始学习Linux的TCP内核参数也已经过去了一年. 最近产品再次出现了TCP链接相关的问题. 因为一开始不知道部署模式已经变更, 我先排除了内存参数的问题. 结果很打脸, 还是内核参数问题导致的, 但是可能比较隐晦 ......
Nginx

YAML示例:创建单幅本nginx容器到指定节点及其service

# one rc deployment, schedule it to the node that has a label "ip" equals to "172.18.8.241" apiVersion: apps/v1 kind: Deployment metadata: name: 241-d ......
节点 示例 容器 service nginx

scp 出现 subsystem request failed on channel 0 scp: Connection closed 的解决方法

. . . . . 先说结论,给 scp 命令添加一个 -O (大写字母O,不是数字0)参数就可以了。 开启故事模式 最近在使用 Gerrit 下载代码的时候,发现出现这样的错误: >$ git clone "ssh://user@10.10.10.13:29418/project/manifest ......
Connection scp subsystem request channel

Docker 数据库连接见解异常 SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again

Docker 配置 DNS { "builder": { "gc": { "defaultKeepStorage": "20GB", "enabled": true } }, "experimental": false, "features": { "buildkit": true }, "regi ......

nginx集成brotli压缩算法

本文于2017年2月中旬完成,发布在个人博客网站上。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 Google开源Brotli压缩算法 Brotli是一种全新的数据格式,可以提供比Zopfli高20-26%的压缩比。 在caniuse网站查询当前主流浏览器对bro ......
算法 brotli nginx

如何判断一个网站是用的Nginx,还是Apache

事件起因: 接手了同事移交过来的一个网站,但是不知道这个网站是用什么做代理的,于是就去网上查资料 解决办法: 打开cmd窗口,输入以下命令即可 curl--head 域名/IP ......
还是 Apache Nginx 网站

Nginx配置

Nginx.conf 配置文件结构 Nginx 是一款 web 服务器,以反向代理、负载均衡、高性能而出名。Apache tomcat 也是类似的 Web服务器,区别在于 tomcat 是多进程/多线程的并发模型,nginx 是基于事件的异步IO 的并发模型。 其配置文件整体包括 全局块、http块 ......
Nginx

nginx中多个server块共用upstream会相互影响吗

nginx中经常有这样的场景,多个server块共用一个域名。 如:upstream有2个以上的域名,nginx配置两个server块,共用一个upstream配置。 那么,如果其中一个域名发生"no live upstreams while connecting to upstream"错误,会不... ......
upstream 多个 server nginx

cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".

如果你用了 pinia 就需要引入 vue-demi: ​​vue-demi​ 是一个 Vue.js 的兼容性库,旨在为 Vue 2 和 Vue 3 提供一致的 API。它通过提供与 Vue 3 相似的 API 来帮助开发者平滑地迁移代码从 Vue 2 到 Vue 3。 pinia 为了兼容新, 使 ......
quot references 路径 TypeError vue

SpringBoot配置报错:Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to determine a suitable driver class

报错: Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. Reason: Failed to ......

android编译kanzi 问题 (3) Build command failed.ninja: error: '../../../../../../lib/android_gradle/ES3_Release/arm64-v8a/xxxxx.so', needed by 'xxxxxx.so', missing and no known rule to make it

问题原因: 当前的cmake环境中,找不到所述的库目录。 解决办法: 在error的上面一般会提示在哪个路径里ninja失败。 ninja: Entering directory `E:\Application\output\cmake\app\cmake\release\arm64-v8a' 然后 ......

android编译kanzi 问题 (2) Gradle sync failed: NDK not configured. Download it with SDK manager. Preferred NDK version is '21.1.6352462'.

问题原因: 这个是因为本地网络不佳,下载NDK的包,然后本地已经存在的和android工程设置的又不匹配。 解决办法: 修改NDK版本 把 21.3.6528147 改成提示的 21.1.6352462 ......
configured NDK Preferred Download android

Nginx实战系列之功能篇----后端节点健康检查

Nginx实战系列之功能篇 后端节点健康检查 公司前一段对业务线上的nginx做了整理,重点就是对nginx上负载均衡器的后端节点做健康检查。目前,nginx对后端节点健康检查的方式主要有3种,这里列出: 1、ngx_http_proxy_module 模块和ngx_http_upstream_mo ......
节点 实战 功能 Nginx

Nginx 服务器开启status页面检测服务状态

一、Nginx status monitor 和apache 中服务器状态一样。输出的内容如: 第1列: 当前与http建立的连接数,包括等待的客户端连接:2第2列: 接受的客户端连接总数目:20 处理的客户端连接总数目:20 客户端总的请求数目:50第3列: 当前,nginx读请求连接 当前,ng ......
状态 页面 服务器 status Nginx

Nginx采用虚拟目录的方式代理IIS站点

Nginx采用虚拟目录的方式代理IIS站点 起因 背景 由于IIS出现了某种不可知的问题,H5APP的部署从IIS改为Nginx。 H5APP的Nginx的部署比较简单,直接修改官方的实例即可 但是之前H5站点中有一个虚拟目录用于客户单点登录认证,所以需要在Nginx中添加对应的虚拟目录,但是单点认 ......
站点 方式 目录 Nginx IIS

[转帖]nginx反向代理时保持长连接

https://www.cnblogs.com/liufarui/p/11075630.html ·【场景描述】 HTTP1.1之后,HTTP协议支持持久连接,也就是长连接,优点在于在一个TCP连接上可以传送多个HTTP请求和响应,减少了建立和关闭连接的消耗和延迟。 如果我们使用了nginx去作为反 ......
nginx

[转帖]京东大佬细说:Nginx反向代理时保持长连接,看完直呼"学到了!"

https://mp.weixin.qq.com/s?__biz=MzU1MzE2NzIzMg==&mid=2247488405&idx=1&sn=7081ff4e0ac1de38ef14acf49d9102cd&utm_source=tuicool&utm_medium=referral 前言: ......
quot Nginx

nginx使用入门的笔记

本文于2016年4月底完成,发布在个人博客网站。 考虑个人博客因某种原因无法修复,于是在博客园安家,之前发布的文章逐步搬迁过来。 从源码安装nginx 下载软件 编译nginx,必备pcre,zlib,由于jackie打算研究HTTPS,所以还需要openssl。 wget https://www. ......
笔记 nginx

vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.

报错信息: ERROR Failed to compile with 1 errors 10:09:02 error in ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2) Y ......
appropriate Unexpected Module failed loader

通过ssh在服务器上使用mujoco,报错Failed to initialize GLFW;ERROR: could not initialize GLFW

破案了,如果是通过ssh在服务器上使用mujoco,通常情况下是没法simulate的,也不能render! 所以服务器没有图形界面就真的很糟心 其余报错原因: 安装Mujoco、mujoco-py、multiagent-compete踩坑记录 ......
initialize GLFW 服务器 mujoco Failed

dubbo启动失败 Failed to register dubbo://10.1.41.144:20880 cause: KeeperErrorCode = Unimplemented for /dubbo/

zookeeper版本问题, 排除curator-framework里的zookeeper,重新引入一个与zookeeper注册中心版本一致的依赖 ......

docker安装nginx

Nginx安装 1、拉取镜像(不指定版本,默认最新版) docker pull nginx 2、创建挂载目录 mkdir -p /data/nginx/conf mkdir -p /data/nginx/log mkdir -p /data/nginx/html [root@localhost co ......
docker nginx
共2410篇  :1/81页 首页上一页1下一页尾页