一、安装(基于docker-compose) 使用docker安装Nginx非常简单,只需要准备如下YML文件即可: version: "3" services: nginx12: restart: always image: daocloud.io/library/nginx:1.12.0 con ...
分类:
其他好文 时间:
2021-06-17 16:49:40
阅读次数:
0
函数的定义 # 方式一 start () { echo "nginx start .... [OK]" #return 0 } stop () { echo "nginx stop .... [FAIL]" } # 方式二 function start { echo "nginx start ... ...
分类:
其他好文 时间:
2021-06-17 16:37:05
阅读次数:
0
导出文件显示的名称和预想不符,一般是文件名的无法被识别,需要通过单独编码才行 response["Content-Disposition"] = "attachment; filename*=UTF-8''{}".format(escape_uri_path(filename)) filename为 ...
分类:
其他好文 时间:
2021-06-16 18:23:41
阅读次数:
0
1 问题背景 nginx 安全漏洞(CVE-2019-9511) nginx 安全漏洞(CVE-2019-9513) nginx 安全漏洞(CVE-2019-9516) http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-201908-9 ...
分类:
系统相关 时间:
2021-06-16 18:19:57
阅读次数:
0
https://www.it1352.com/733995.html 问 题 就是我有一个域名ABC.com一台服务器,两个网站应用程序两个网站应用程序挂在不同端口设置了两个域名,A.ABC.com,B.ABC.com访问A.ABC.com和B.ABC.com能指向这两个应用程序.如何配置 解决方案 ...
分类:
其他好文 时间:
2021-06-16 18:03:58
阅读次数:
0
'''模板层 {{ 变量名 }} {{ 逻辑 }} 后端传值 from django.shortcuts import render return render(request, '.html', locals()/{'前端调用变量名': 后端变量名}, content_type='', statu ...
分类:
其他好文 时间:
2021-06-16 17:37:55
阅读次数:
0
WEB服务与NGINX(2)-NGINX的I/O模型 1. linux I/0模型及在NGINX中的应用 1.1 I/O模型概述 I/O在计算机中指的是INPUT和OUPUT,IOPS(INPUT/OUTPUT per second)每秒的输入输出量(或读写次数),是衡量I/O性能的主要指标之一。 ...
分类:
Web程序 时间:
2021-06-13 10:47:01
阅读次数:
0
CentOS 安装 nginx 教程 下载安装包 cd /usr/local wget http://nginx.org/download/nginx-1.19.8.tar.gz 安装依赖 yum install gcc-c++ yum install pcre yum install pcre-d ...
分类:
其他好文 时间:
2021-06-13 10:38:46
阅读次数:
0
nginx.conf配置 #user nobody; user www www; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log in ...
分类:
其他好文 时间:
2021-06-13 09:55:40
阅读次数:
0
关于如何在django中admin页面下添加自定义按钮并实现功能最近使用Django的admin页面开发了一个产品信息管理系统,由于需求的不断增加,需要在admin页面自定义一些按钮,并通过request请求,触发后端的一下脚本程序,实现某些特定的功能。首先声明一下:本程序是基于django 2.2 ...
分类:
其他好文 时间:
2021-06-13 09:49:15
阅读次数:
0