1、nginx日志字段解析 包含的变量注释如下: $remote_addr, $http_x_forwarded_for 记录客户端IP地址 $remote_user 记录客户端用户名称 $request 记录请求的URL和HTTP协议 $status 记录请求状态 $body_bytes_sent ...
分类:
其他好文 时间:
2021-06-02 18:47:12
阅读次数:
0
测试环境 系统 IP 软件 Centos8 192.168.248.80 lvs+keepalived Centos8 192.168.248.81 lvs+keepalived Centos8 192.168.248.100 Web server Centos8 192.168.248.101 W ...
分类:
其他好文 时间:
2021-06-02 17:50:07
阅读次数:
0
我用ssh连上了ubuntu虚拟机, 尝试xclip命令时, 输入ls | xclip -sel c, 得到报错: Error: Can't open display: (null). 搜索后, 发现好像和X11和DISPLAY有关. 还说ssh应该打开-X选项. 可用ssh -X连接, 还是不行. ...
分类:
其他好文 时间:
2021-06-02 17:07:02
阅读次数:
0
1 使用ntp同步时间 1.1 如果开启了ntp服务,使用ntpsta查看同步状态 1.2 如果不使用用ntp服务,使用ntpdate -u ntp.aliyun.com 直接同步时间 echo "*/20 * * * * /usr/sbin/ntpdate -u ntp1.aliyun.com > ...
分类:
其他好文 时间:
2021-06-02 16:45:57
阅读次数:
0
问题 今天用Git上传项目时,最后一步push时命令行报错 error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 fatal: the remote end hung up unexpectedly fat ...
分类:
Web程序 时间:
2021-06-02 16:10:05
阅读次数:
0
主要注意使用代理的情况下无法init的问题。 1 sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources ...
分类:
系统相关 时间:
2021-06-02 16:05:04
阅读次数:
0
Nginx("engine x")是一款是由俄罗斯的程序设计师Igor Sysoev所开发高性能的 Web和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 在高连接并发的情况下,Nginx是Apache服务器不错的替代品。 一,什么是反向代理: 反向代理服务器架设在服务器端 ...
分类:
Web程序 时间:
2021-06-02 13:07:20
阅读次数:
0
nginx的proxy_pass路径转发规则浅析(末尾/问题) 一 location匹配路径末尾没有 / 此时proxy_pass后面的路径必须拼接location的路径: location /sta { proxy_redirect off; proxy_set_header Host $host ...
分类:
其他好文 时间:
2021-06-02 12:41:13
阅读次数:
0
xdebug 2.8 (貌似3.0以下都可以) [xdebug]xdebug.remote_enable=1xdebug.remote_host=host.docker.internalxdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.r ...
分类:
其他好文 时间:
2021-05-25 18:12:24
阅读次数:
0
unionfs 是一个灵活强大的组合fs npm 包,可以方便的进行多fs 实现的组合,比如基于内存的fs 与本地fs 组合实现强大的 npm 扩展以及配置管理。。。 参考代码 package.json { "name": "mem-fs-app", "version": "1.0.0", "mai ...
分类:
其他好文 时间:
2021-05-25 17:54:06
阅读次数:
0