allowed nginx 405 not

容器操作、应用部署、mysql 部署、redis、nginx、迁移与备份、Dockerfile

1 容器操作 # 启动容器 docker start 容器id # 停止容器 docker stop 容器id # 文件拷贝 # 容器的文件copy到宿主机上(不是在容器内执行) docker cp 容器名称:容器目录 需要拷贝的文件或目录 docker cp 20fd8:/home/lqz.txt ......
容器 Dockerfile 备份 mysql redis

不让 nginx 缓存 html、htm

location / { if ($request_filename ~* .*\.(?:htm|html)$) { add_header Cache-Control "private, no-store, no-cache, must-revalidate, proxy-revalidate"; ......
缓存 nginx html htm

nginx限制访问频率

limit_req_zone 定义 IP 或 url 访问的频率限制规则,只能配置在 http{} limit_req 启用对应的规则,可以配置于 http{},server{},location{} | 变量名 | 描述 | | | | | $binary_remote_addr | 客户端IP ......
频率 nginx

使用mybatis-generator 能生成 但是实际使用时抛出异常Invalid bound statement (not found)

好多好多好多红 但是重点是一句org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): {}.dao.mapper.MemberMapper.selectByExample 网络上查了好多次 都没 ......

nginx配置ssl证书实现https访问

ssl_certificate server.crt; 证书放到跟nginx.conf同级下面 也可以指定目录 ssl_certificate_key server.key; 证书的密钥文件放到跟nginx.conf同级下面 也可以指定目录 jks格式证书转crt首先将jks转p12后在转crt: ......
证书 nginx https ssl

在docker 环境中 websocket 通过nginx代理 不通 怎么解决

如果你在 Docker 环境中使用 WebSocket 并通过 Nginx 进行代理,可能需要进行一些额外的配置才能使 WebSocket 正常工作。 下面是一些可能会导致 WebSocket 代理失败的问题以及相应的解决方法: 检查 Nginx 配置 在 Nginx 配置中,确保已经正确地设置了 ......
websocket 环境 docker nginx

使用宝塔面板检测URL状态码是否返回500,并在出现问题时自动重启Nginx脚本

脚本只支持检测一条url状态码,将url中的网址更改为你需要检测的网址。 #!/bin/bash url="https://www.cnblogs.com/shenjingwa/" status_code=$(curl -o /dev/null -s -w %{http_code} $url) if ......
宝塔 脚本 面板 状态 问题

java.io.FileNotFoundException: class path resource [bean.xml] cannot be opened because it does not exist

出现这个报错 Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path res ......

Linux:-bash: jps: command not found

jps是jdk提供的一个查看当前java进程的小工具, 全称是 JavaVirtual Machine Process Status Tool $ jps [options] [hostid] options: -q :仅输出VM标识符,不包括class -l :输出完全的包名,应用主类名,jar的 ......
command Linux found bash jps

nginx 安全加固1

1.配置SSL协议 Nginx web服务器的应配置使用Secure Sockets Layer Protocol (SSL协议)。为了数据传输的安全,SSL依靠证书来验证服务器的身份,并为浏览器和服务器之间的通信加密。 加固方法:编辑nginx.conf文件和可用站点默认文件包含ssl on 2. ......
nginx

nginx 安全加固2

检查是否配置登录超时时间设置 编辑 vi /etc/profile 文件。配置tmout将值设置为低于300 检查是否禁止root用户登录FTP 设置如下将对应配置文件中,设置root,禁止登录的用户列表中添加root用户 编辑 vi /etc/ftpaccess,将root前的#去掉 编辑 vi ......
nginx

nginx 配置文件加颜色

在 ~/.vim/syntax/ 目录下 wget https://www.vim.org/scripts/download_script.php?src_id=19394 生成vim的配置文件 ......
颜色 文件 nginx

安装SQL Server累积版本更新包,提示“Not Clustered or the Cluster service is up and online”和 There are no SQL Server Instances or shared features that can be updated on this computer

1. Not Clustered or the Cluster service is up and online 起因是服务器SQL Server之前有开启SQL Server AlwaysOn High availability feature and installed Failover Clu ......
Server SQL Clustered Instances features

nginx

Nginx 安装+域名+location规则+rewrite 官网:http://nginx.org/ 安装依赖 yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel 解压 tar -zxf 安装包 ./configu ......
nginx

Python wordpress-xmlrpc错误:xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 4, column 0

解决方法: 修改打开client.py文件 原代码: def feed(self, data): self._parser.Parse(data, 0) 改成如下的代码: def feed(self, data): self._parser.Parse(data.strip(), 0) ......

解决Could not find a version that satisfies the requirement思路

安装python第三方库的时候会提示报错缺少依赖库,报错如下: ERROR: Could not find a version that satisfies the requirement 模块名 (from automat) (from versions: none)ERROR: No match ......
requirement satisfies 思路 version Could

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts

报错原因: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the f ......
dependency the currently behaviour conflicts

Nginx反代理Halo

nginx 的基本设置 nginx 基本结构 ... #全局块 events { #events块 ... } http #http块 { ... #http全局块 server #server块 { ... #server全局块 location [PATTERN] #location块 { .. ......
Nginx Halo

Nginx 入门实战(3)--Nginx 常用配置参数说明

Nginx 中包含众多的参数,这些参数影响 Nginx 的行为;本文主要介绍一些常用的参数。 1、Nginx 配置文件基本结构 Nginx 的配置文件为 conf/nginx.conf,配置文件由配置指令/参数组成,有些指令/参数位于 main 的位置(如:events、http),有些指令/参数位 ......
Nginx 实战 常用 参数

Nginx系列---【nginx可视化配置神器-nginxWebUI来了!】

nginx可视化配置神器-nginxWebUI来了! 官网地址:https://www.nginxwebui.cn/product.html 实战教程 1.下载安装包 建议安装最新版 下载链接:https://gitee.com/cym1102/nginxWebUI/tags 下载完成后是一个jar ......
神器 nginxWebUI Nginx nginx

ocidll forced to load library,initialization error could not initialize make sure you have the 64 bits oracle client installed

是因为你使用pl/sql是64位的,但是软件只找到了32位的oracle 客户端 多次尝试,我的pl/sql是64位,但是这里需要对应的使用64位,我的方案是下载 https://www.allroundautomations.com/registered-plsqldev/ 这个版本的软件 这样配 ......

关于Kubernetes-v1.23.6-初始化时报错[WARNING FileExisting-tc]: tc not found in system path

今天笔者在部署Kubernetes-v1.23.6版本时,在对master节点使用如下命令进行初始化时,报错: [WARNING FileExisting-tc]: tc not found in system path 当然其实也从字符意义上来看,只能算是WARNING提醒,不会影响主要的功能和结 ......

manjaro安装obs报错:could not find all required packages: vid.stab>=1.1.1

问题与解决方法 问题 pacman -S obs-studio 安装的obs打不开。 尝试yay装 yay -S obs-studio-tytan652 使用以上指令安装OBS报错:缺少依赖vid.stab>=1.1.1(也可能是:缺少依赖:ffmpeg-obs) 然后安装ffmpeg-obs也报错 ......
required packages manjaro could find

fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com

今天提交代码的时候命令行总是弹出这个问题 然后去尝试输入下面两行代码,就解决了。 git config --global --unset http.proxy git config --global --unset https.proxy ......
github com resolve access unable

Uncaught TypeError: f.__fbeventsModules[a] is not a function at f.__fbeventsModules.f.getFbeventsModules

Uncaught TypeError: f.__fbeventsModules[a] is not a function at f.__fbeventsModules.f.getFbeventsModules怎么了 这个错误通常是因为代码中使用了 Facebook 的跟踪代码,但是在加载该代码之前, ......

Module build failed (from ./node_modules/css-loader/dist/cjs.js): TypeError: this.getOptions is not a function

Module build failed (from ./node_modules/css-loader/dist/cjs.js):TypeError: this.getOptions is not a function Module build failed (from ./node_modules ......

Nginx 多个域名解析到同一个服务器

域名证书绑定参照:nginx 发布网站通过域名访问,后端接口反向代理 - AutumnSilence - 博客园 (cnblogs.com) 1、域名解析到服务器上 2、修改nginx 配置文件 定义两个 server,监听443端口, 修改server_name 绑定的值 server { lis ......
多个 服务器 域名 Nginx

Call parameter type does not match function signature! 解决

报错: Call parameter type does not match function signature! %7 = load i8*, i8** %6 i32 %63 = call i32 @as_copycal(i8* %39, i8* %55, i8* %7)LLVM ERROR: ......
parameter signature function match Call

【已解决】Microsoft Visual C++ Redistributable is not installed

【Error】导入torch,提示报错: Microsoft Visual C++ Redistributable is not installed, this may lead to the DLL load failure. 【Cause】 Anaconda没有默认安装在C盘;系统没有安装VC+ ......

查询linux运行中的nginx

因为备份、不同版本等问题,导致ECS Linux上存放有多个Nginx目录,可以通过如下方法定位当前正在运行的Nginx的配置文件: 1. 查看nginx的PID,以常用的80端口为例:netstat -anop | grep 0.0.0.0:802. 通过相应的进程ID(比如:4562)查询当前运 ......
linux nginx