fail2ban fail2 nginx fail

centos7安装nginx

首先安装nginx所需要的第三方库和编译工具 # yum install -y gcc gcc-c++ autoconf automake make # yum install zlib zlib-devel openssl openssl-devel pcre pcre-devel wget ht ......
centos7 centos nginx

nginx常用命令

nginx -s reload # 重新载入配置文件 nginx -s reopen # 重启 Nginx nginx -s stop # 停止 Nginx ......
命令 常用 nginx

docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory

docker 启动报错 library initialization failed - unable to allocate file descriptor table - out of memory 1.报错日志 library initialization failed - unable to ......

使用Docker和Nginx部署单页面应用

使用Docker和Nginx部署单页面应用 一、简介 1.背景 Docker 是一个容器引擎,它使用 Linux 内核功能(如命名空间和控制组)在操作系统之上创建容器 Docker Compose是一个命令行工具,可以简化容器镜像的构建以及容器的运行,将命令行的选项翻译成配置文件 Nginx是一个高 ......
页面 Docker Nginx

Linux:vscode扩展无法下载,报错:Error while fetching extensions : XHR failed

在Linux系统上下载安装好vscode以后,发现扩展里面无法下载安装,报错:Error while fetching extensions : XHR failed 解决办法:修改 hosts 文件 1.sudo cp /etc/hosts /etc/hosts.bak 2.sudo vi /et ......
extensions fetching vscode failed Linux

nginx基础

一、什么是nginx? ​ Nginx(发音为“engine-x”)是一个高性能的开源 Web 服务器和反向代理服务器,也可以作为负载均衡器、HTTP缓存以及安全防护等。它最初由俄罗斯的程序设计师Igor Sysoev在2004年创建。 ​ 相比传统的 Apache 服务器,Nginx 采用了更加轻 ......
基础 nginx

nginx map 指令

map指令是一项强大的功能,由 ngx_http_map_module 模块提供,默认情况下,nginx 有加载这个模块,除非人为地排除(--without-http_map_module)。 什么是 map 指令? map指令允许我们在Nginx配置文件中创建一个变量映射,以便根据输入变量的值映射 ......
指令 nginx map

Nginx Ingress

Installation Use the compatible version with your Kubernetes cluster, otherwise, you may get some unexpected exception or error. kubectl apply -f http ......
Ingress Nginx

linux环境下nginx配置http2

由于项目需求,在nginx下支持http2协议,希望提升访问性能。 除了介绍配置过程,在文章最后会记上过程中的困惑。 准备工作 nginx-1.19.2.tar.gz openssl-1.0.2r.tar.gz(必须不低于1.0.2,否则不支持http2) 以上文件上传到/usr/local目录下。 ......
环境 linux http2 nginx http

win10安装git fatal: open /dev/null or dup failed: No such file or directory错误解决方法

https://files.cnblogs.com/files/netlock/null.zip?t=1703226893&download=true 文件地址 解决方法:1.C:\Windows\System32\drivers\null.sys 这个文件损坏,可以从网上下载win7、win10对 ......
directory 错误 方法 failed fatal

Nginx服务器常用参数设置

Nginx作为一个高性能的Web服务器和反向代理,它的性能可以通过调整底层操作系统的参数来进一步优化。以下是一些常见的操作系统级别的调整,通常针对Linux系统: File Descriptors Limit: 增加文件描述符的数量可以允许Nginx打开更多的连接。 ulimit -n 2048 # ......
常用 参数 服务器 Nginx

nginx配置

......
nginx

nginx配置防盗链

nginx路径下html中新建images文件夹,放入可以访问的图片。然后新建referer文件夹,放入防盗图片 server增加如下配置 location ~* \.(jpg|png)$ { root html; #只允许本地ip访问静态资源,其他访问返回防盗图片 valid_referers n ......
nginx

NUXT - Error: Failed to download template from registry: fetch failed

HOST 路径 C:\Windows\System32\drivers\etc\hosts 前往 HOST 加入 185.199.108.133 raw.githubusercontent.com 测试是否成功 (若无任何信息返回即成功): node -e "require('https').get ......
download template registry Failed failed

gitlab 修改导入文件大小 nginx 配置 重启gitlab 导致 nginx 报错 stdout: sh: /opt/gitlab/embedded/sbin/nginx: 没有那个文件或目录

报错 stdout: sh: /opt/gitlab/embedded/sbin/nginx: 没有那个文件或目录 修改 vim /opt/gitlab/sv/nginx/run #exec chpst -P /opt/gitlab/embedded/sbin/nginx -p /var/opt/g ......
gitlab nginx 文件 embedded 大小

nginx调优-调大rlimit_nofile

前言 对于Linux用户或用户组打开的进程,Linux系统会对进程可占用的资源进行限制。该限制针对特定Linux用户或用户组,限制范围是该Linux用户或用户组打开的所有进程。 遇到的异常 nginx转发的流量比较大。因此在nginx.conf中,存在如下配置: worker_rlimit_nofi ......
rlimit_nofile rlimit nofile nginx

记录一次由nginx配置引发出来的一系列的缓存问题

问题描述: 在做一个企业微信的移动端项目时,每次修改代码后并且打包、部署完毕,再次打开页面总是会有上一次的缓存,一开始以为是cookie和webStorage缓存导致的,然后每次清除还是有缓存,后来把企业微信本身的缓存清除了之后再重进才有效果 问题推理:如果每次打开是上一次的缓存,那可能就是inde ......
缓存 问题 nginx

nginx下的proxy_pass使用

之前的文章说到了,return,rewrite的使用,以及它们的使用场景,今天再来说一种代理的使用,proxy_pass,它属于nginx下的ngx_http_proxy_module模块,没有显示的重定向(看不到30x的重定向),客户端是不知道的,是服务器内部进行转发的 浏览器访问地址:http: ......
proxy_pass nginx proxy pass

docker 部署 es + nginx

ES 安装 elasticsearch.yml cluster.name: "docker-cluster" node.name: "node-1" network.host: 0.0.0.0 discovery.seed_hosts: ["127.0.0.1"] cluster.initial_m ......
docker nginx es

报错: Failed to execute ‘append‘ on ‘FormData‘: 2 arguments required, but only 1 present.

未能对“FormData”执行“append”:需要2个参数,但仅存在1个参数。 let formData=new FormData() 本来 formData.append(‘list’,JSON.stringify(arr)) 改成下边这样了,就报错了 formData.append(JSON. ......
arguments FormData required execute present

nginx下的return,rewrite重定向功能使用场景

nginx下的return,rewrite虽然好用,而且功能强大,但是也有它的局限,我们一起来看看 return和rewrite都可以实现重定向的功能,但是不同的场景下,它们的表现是不一样的,直接上列子: 1、浏览器访问:http://m.9000.local/index/get,执行代码如下: $ ......
场景 rewrite 功能 return nginx

nginx配置本地域名地址

打开nginx.conf文件,修改server_name中的localhost为域名 访问本地电脑路径,C:\Windows\System32\drivers\etc,修改hosts文件。一般是没有修改权限的,还要如下操作 ......
地址 域名 nginx

Docker启动Nacos报错:Nacos Server did not start because dumpservice bean construction fail

一、表象 重启服务器之后Docker运行Nacos容器,启动成功,但是外网无法访问。 查看了一下Nacos启动日志(docker logs nacos容器名) 二、分析 很明显是数据库配``置问题。。如果是数据库配置的问题,可以着重检查以下信息尤其是MySQL内网Host,查询方式见Docker安装 ......

nginx配置https

Nginx配置HTTPS服务器需要先准备好SSL证书并上传到云服务器中,这里用到的主要是.crt证书文件和.key私钥文件。 Nginx配置中,需要给server的listen指令添加ssl参数(监听443端口),表示该端口下接受的所有连接都应工作于SSL模式。以及设置ssl_certificate ......
nginx https

nginx配置只能查看图片

1.在图片所在的目录下创建一个名为.htaccess’的隐藏文件,该文件用于设置禁止下载 2.在.htaccess文件中添加以下配置: SetHandler default-handler Options-Indexes 这样设置后,用户就无法通过点击链接或使用下载工具下载图片了 接下来,在 ngi ......
图片 nginx

nginx中conf文件简介

#配置文件存在的目录 /usr/local/nginx/conf 下 #1、全局块 #从配置文件开始到 events 块之间的内容,主要会设置一些影响 nginx 服务器整体运行的配置指令,主要包括配 #置运行 Nginx 服务器的用户(组)、允许生成的 worker process 数,进程 PI ......
文件 简介 nginx conf

nginx重定向配置

location / { return 404; #直接返回状态码 } location / { return 404 "pages not found"; #返回状态码 + 一段文本 } location / { return 302 /blog ; #返回状态码 + 重定向地址 } locati ......
nginx

nginx配置Gzip压缩

gzip_types #压缩的文件类型 text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript gzip on ......
nginx Gzip

nginx解决跨域问题

跨域的定义 同源策略限制了从同一个源加载的文档或脚本如何与来自另一个源的资源进行交互。这是一个用于隔离潜在恶意文件的重要安全机制。通常不允许不同源间的读操作。 同源的定义 如果两个页面的协议,端口(如果有指定)和域名都相同,则两个页面具有相同的源。 nginx解决跨域的原理 例如: 前端server ......
问题 nginx

nginx文件配置

根据文件类型设置过期时间 location ~.*\.css$ { expires 1d; break; } location ~.*\.js$ { expires 1d; break; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { access_lo ......
文件 nginx
共2410篇  :6/81页 首页上一页6下一页尾页