使用模块 ngx_http_gzip_module 用gzip方法压缩响应数据,节约带宽 一、启用或禁用gzip压缩 gzip on | off; 二、压缩比由低到高:1 到 9, 默认:1 gzip_comp_level level; 压缩比越高,越消耗CPU 三、匹配到客户端浏览器不执行压缩 g ...
分类:
其他好文 时间:
2021-06-03 18:08:25
阅读次数:
0
1.创建目录:/gitbook/gitbook 和 /gitbook/html 2. /gitbook/gitbook目录下,touch新建README.md SUMMARY.md 3. docker安装gitbook 4.docker进入gitbook,进行初始化 5.每次改动md源文件后,都要重 ...
分类:
其他好文 时间:
2021-06-03 18:06:56
阅读次数:
0
* Official English Documentation: http://nginx.org/en/docs/ * Official Russian Documentation: http://nginx.org/ru/docs/ #==基础配置==# user nginx; #设置运行用户 ...
分类:
其他好文 时间:
2021-06-03 18:04:40
阅读次数:
0
介绍两种pip使用方式: 方式一 下载第三方包到本地: python -m pip download pyproj==2.4.2.post1 -d "D:\software installation package\python安装\包" --trusted-host pypi.douban.com ...
分类:
其他好文 时间:
2021-06-03 18:03:11
阅读次数:
0
前言 在当今在互联网微服务比较适用的情况下,docker 可以说一个利器。每次我们打包docker的时候都是适用docker 的配置文件,那么配置文件里面会设置环境变量,这个时候需要我们的应用能够识别到这些环境变量并作出相应的选择。 适用场景: docker 运行环境 k8s 运行环境 因为他们都是 ...
分类:
Web程序 时间:
2021-06-03 17:37:44
阅读次数:
0
1、关闭正在运行的容器 2、查看容器ID,docker ps -a 3、找到宿主机容器目录, cd /var/lib/docker/containers/f65c8e2e* 4、修改hostconfig.json 找到PortBindings,例如容器内的端口是50070,绑定的宿主机端口是5007 ...
分类:
其他好文 时间:
2021-06-02 20:14:50
阅读次数:
0
docker-compose.yaml version: "3" services: redis: image: redis:5.0.8 container_name: redis restart: always command: redis-server /etc/redis/redis.conf ...
分类:
其他好文 时间:
2021-06-02 19:51:51
阅读次数:
0
启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下: 1.nginx配置文件有错误 运行下面命令查 ...
分类:
其他好文 时间:
2021-06-02 19:50:08
阅读次数:
0
默认nginx不开启缓存 open_file_cache off; nginx可以缓存以下三种信息: (1) 文件元数据:文件的描述符、文件大小和最近一次的修改时间 (2) 打开的目录结构 (3) 没有找到的或者没有权限访问的文件的相关信息max=N:可缓存的缓存项上限;达到上限后会使用LRU算法实 ...
分类:
其他好文 时间:
2021-06-02 19:44:50
阅读次数:
0
环境介绍 RHEL8 nginx 192.168.92.129 RHEL8 myxql 192.168.92.130 RHEL8 php 192.168.92.131 nginx配置 //关闭服务器和selinux [root@nginx ~]# systemctl disable --now fi ...
分类:
其他好文 时间:
2021-06-02 19:38:14
阅读次数:
0