手动下载安装nginx 需要的安装依赖包 登录可连接公网的一台机器, 配置 nginx.repo yum源 cat nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$bas ...
分类:
其他好文 时间:
2020-11-23 12:47:29
阅读次数:
23
问题一: [root@cdeba90ec46e ~]# ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module bash: ./configure: No such fil ...
分类:
其他好文 时间:
2020-11-23 12:11:38
阅读次数:
5
sudo gedit /etc/apt/sources.list 粘贴以下内容 deb https://repo.huaweicloud.com/ubuntu-ports/ bionic main restricted universe multiverse deb-src https://repo ...
分类:
其他好文 时间:
2020-11-23 12:08:23
阅读次数:
5
最近生产环境在这两个参数之间遇到过几次坑。这里记录下。 client_max_body_size client_max_body_size 默认 1M,表示 客户端请求服务器最大允许大小,在“Content-Length”请求头中指定。如果请求的正文数据大于client_max_body_size, ...
分类:
其他好文 时间:
2020-11-23 12:01:24
阅读次数:
6
NGINX and the "Power of Two Choices" Load-Balancing Algorithm - NGINX https://www.nginx.com/blog/nginx-power-of-two-choices-load-balancing-algorithm/ ...
分类:
其他好文 时间:
2020-11-23 11:48:43
阅读次数:
4
@ 1.Docker概述 1.1Docker为什么会出现 一款产品:开发--》上线,需要两套环境!应用环境,应用配置! 开发 运营之间产生问题:我在我的电脑上可以运行!版本更新导致服务不可用!对于运维就很难 开发即运维! 环境配置十分麻烦,每一个机器都要部署环境(集群Redis、ES、Hadoop。 ...
分类:
其他好文 时间:
2020-11-21 12:47:24
阅读次数:
31
1. 官网教程地址 https://docs.espressif.com/projects/esp-idf/zh_CN/v4.0.1/get-started/linux-setup.html 2.官网教程提到针对ubuntu,需要输入下列指令 sudo apt-get install git wge ...
分类:
系统相关 时间:
2020-11-21 12:30:09
阅读次数:
14
##引言 这两天写项目碰到了使用nginx作为图片服务器及简单的地址重写 ###Nginx作为图片服务器 server { listen 80; server_name image.leyou.com; proxy_set_header X-Forwarded-Host $host; proxy_s ...
分类:
其他好文 时间:
2020-11-21 12:27:00
阅读次数:
7
1.问题分析nginx访问出现504GatewayTime-out,一般是由于程序执行时间过长导致响应超时,例如程序执行需要90秒,而nginx最大响应等待时间为30秒,这样就会出现超时。通常有以下几种情况导致:(1).程序在处理大量数据,导致等待超时。(2).程序中调用外部请求,而外部请求响应超时。(3).连接数据库失败而没有停止,死循环重新连。出现这种情况,我们可以先优化程序,缩短执行时间。另
分类:
Web程序 时间:
2020-11-21 12:15:38
阅读次数:
19
起因 困扰我好久的一个报错,终于解决了 之前我一直以为是 python代码的问题,以为是模块相互调引起的报错,忽略了最后一行这个错误 OSError: libGCBase_gcc421_v3_0.so: cannot open shared object file: No such file or ...
分类:
系统相关 时间:
2020-11-21 12:08:55
阅读次数:
16