使用模块 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
* 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
1.修改主机名:命令:vim /etc/hostname 文件输入:HOSTNAME=hadoop100 想永久修改,应该修改配置文件vim /etc/sysconfig/network输入:NETWORKING=yes #使用网络 HOSTNAME=hadoop100 #设置主机名 2.IP映射命 ...
分类:
其他好文 时间:
2021-06-03 17:44:44
阅读次数:
0
#CentOS7的yum源中默认好像是没有mysql 1.1 下载mysql的repo源 cd /usr/local wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 1.2 安装mysql-community-r ...
分类:
数据库 时间:
2021-06-03 17:43:34
阅读次数:
0
背景:修复服务器内核漏洞 当安装了一个发行版,它包含了一个特定版本的内核,如下这台服务器内核则为:Linux 3.10.0-1160.el7.x86_64 # uname -sr Linux 3.10.0-1160.el7.x86_64 内核升级操作步骤如下: 安装elrepo 载入公钥,安装epr ...
分类:
其他好文 时间:
2021-06-02 20:45:53
阅读次数:
0
1.下载python3.6包 wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz 2.安装相关依赖 yum install gcc-c++ yum install pcre pcre-devel yum install z ...
分类:
编程语言 时间:
2021-06-02 20:23:58
阅读次数:
0
1、先停用CentOS7自带的防火墙 //关闭防火墙 systemctl stop firewalld.service //永久关闭防火墙 systemctl disable firewalld.service 2、安装iptables yum install -y iptables-service ...
分类:
其他好文 时间:
2021-06-02 20:03:37
阅读次数:
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