2023年10月15日

nginx获取response的cookie

摘要: location /xxxxx/ { proxy_pass http://abc.com/; proxy_redirect http://abc.com/ http://abc.com/xxxxx/; proxy_set_header Cookie $http_cookie; proxy_cooki 阅读全文

posted @ 2023-10-15 22:58 叮糖小葱 阅读(189) 评论(0) 推荐(0)

2023年9月21日

mysql权限控制

摘要: 1. 授权数据表(database_name.table_name)所有的权限给'user'@'localhost' GRANT ALL ON database_name.table_name TO 'user'@'localhost'; ALL包含的权限类型如下:SELECT, INSERT, U 阅读全文

posted @ 2023-09-21 08:38 叮糖小葱 阅读(38) 评论(0) 推荐(0)

2023年8月28日

mysql日志追踪 / 数据恢复

摘要: 1. 查看日志开启状态 show variables like 'log_%'; 2. 查看日志文件列表 show binary logs;或者show master logs; 3. 查看当前日志index位置 show master status; 4. 查看binlog关键事件 show bi 阅读全文

posted @ 2023-08-28 19:24 叮糖小葱 阅读(42) 评论(0) 推荐(0)

vscode powershell中文乱码问题

摘要: 1. powershell设置 1)新建如下文件:C:\Users\用户名\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 2)在文件中加入如下脚本 [Console]::OutputEncoding = [System.Te 阅读全文

posted @ 2023-08-28 14:09 叮糖小葱 阅读(880) 评论(0) 推荐(0)

docker常用命令

摘要: 1. 远程操控docker docker -H tcp://ip:port command,如docker -H tcp://localhost:2375 images 2. 登录docker仓库 docker login repository_host,然后根据提示输入username,passw 阅读全文

posted @ 2023-08-28 14:08 叮糖小葱 阅读(50) 评论(0) 推荐(0)

2023年8月21日

git分支常用命令

摘要: 1. 创建新分支 git checkout -b 新分支名称 // 自动切换到新分支 git branch 新分支名称 2. 本机已经创建的分支关联远程分支 git branch –-set-upstream-to=origin/远程分支名 本地分支名 3. 查看本地与远程分支的对应关系 git b 阅读全文

posted @ 2023-08-21 17:12 叮糖小葱 阅读(25) 评论(0) 推荐(0)

2021年2月5日

java main方法控制log输出级别

摘要: import java.util.List; import org.slf4j.LoggerFactory; import ch.qos.logback.classic.Level; import ch.qos.logback.classic.LoggerContext; public class 阅读全文

posted @ 2021-02-05 18:25 叮糖小葱 阅读(957) 评论(0) 推荐(0)

2021年2月2日

从nginx不停服升级/更改配置,浅谈kill信号

摘要: nginx不停服务升级是通过信号控制完成的。 nginx信号控制使用的几个选项 信号 含义 TERM、INT 快速关闭进程 QUIT 优雅的关闭进程,即等请求结束之后再关闭 HUP 改变配置文件之后、平滑的重读配置文件 USR1 切割日志 USR2 Nginx平滑的升级 WINCH 优雅的关闭旧进程 阅读全文

posted @ 2021-02-02 23:21 叮糖小葱 阅读(304) 评论(0) 推荐(1)

2021年1月30日

nginx不停服务安装新模块,以nginx_upstream_check_module-master为例

摘要: #没有nginx源码包的可官网重新下载“对应版本”的源码包 #download site:http://nginx.org/en/download.html #第三方模块补丁包推荐github下载,注意与“nginx版本”相一致#如阿里的自检模块nginx_upstream_check_module 阅读全文

posted @ 2021-01-30 12:28 叮糖小葱 阅读(351) 评论(0) 推荐(0)

导航