gzip配置的常用参数 gzip on|off; #是否开启gzip gzip_buffers 32 4K| 16 8K #缓冲(压缩在内存中缓冲几块? 每块多大?) gzip_comp_level [1-9] #推荐6 压缩级别(级别越高,压的越小,越浪费CPU计算资源) gzip_disable ...
分类:
Web程序 时间:
2020-06-24 16:04:51
阅读次数:
61
Nginx的产生 没有听过Nginx?那么一定听过它的"同行"Apache吧!Nginx同Apache一样都是一种WEB服务器。基于REST架构风格,以统一资源描述符(Uniform Resources Identifier)URI或者统一资源定位符(Uniform Resources Locato ...
分类:
其他好文 时间:
2020-06-24 15:45:10
阅读次数:
76
##日志格式 '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for"' 首先把字 ...
分类:
其他好文 时间:
2020-06-24 14:24:57
阅读次数:
55
命令相关: nginx -t # 验证配置文件;无法验证其它文件的情况 nginx -s reload # 重新加载;可以重启其它文件启动的情况 nginx -s stop # 快速停止 nginx -s quit # 正常停止 nginx -V # 查看版本 nginx -c conf/web01 ...
分类:
其他好文 时间:
2020-06-24 14:15:04
阅读次数:
41
个人背景:坐标背景,某211本科毕业生,计算机专业,前公司是某B站,辞职之后就重新规划了一下自己的职业方向,最终目标定在了字节跳动,比较年轻化的一家互联网公司,近几年的发展速度也比较快,综合方面来说比较适合自己,所以就投了字节的简历,Java研发方向的,之后接到面试通知,总共耗时了2个星期,一共4轮 ...
分类:
其他好文 时间:
2020-06-24 14:12:19
阅读次数:
85
查看当前编译 nginx -V 增加 --with-http_stub_status_module 监控nginx状态 进入我们之前的解压包路径 ./configure --prefix=/data/nginx --with-stream --with-http_stub_status_module ...
分类:
其他好文 时间:
2020-06-24 11:48:29
阅读次数:
61
docker部署Django运行环境 mariadb docker pull mariadb:10.2 mkdir /data/mysql useradd mysql chown -R mysql:mysql /data/mysql docker run -itd --name maria-test ...
分类:
数据库 时间:
2020-06-24 09:18:00
阅读次数:
65
安装htpasswd htpasswd是Apache密码生成工具,Nginx支持auth_basic认证,因此我门可以将生成的密码用于Nginx中,输入一行命令即可安装:yum -y install httpd-tools ,参数如下: htpasswd -c ./passwd username s ...
分类:
其他好文 时间:
2020-06-23 19:44:06
阅读次数:
66
一、nginx+phpnginx配置文件中增加以下内容 cat /usr/local/nginx/conf/nginx.conf server { listen 80; server_name www.example.com; location / { root html; index index. ...
分类:
数据库 时间:
2020-06-23 19:38:22
阅读次数:
57
一、 编写nginx反向代理配置 worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on ...
分类:
其他好文 时间:
2020-06-23 19:09:56
阅读次数:
115