12 2022 档案
摘要:mysql 是用用户名+ip来区分用户的,如下,是三个不同的用户 'username'@'localhost' 'username'@'127.0.0.1' 'username'@'%' 在 mysql,不同 ip 的同一用户尽量用同一个密码 参考: MySQL has two different
阅读全文
摘要:方案一: 服务器A -> 后端服务器B 服务器A 代理后端流量,有时后端服务器会发送一些重定向响应,用 http 的 Location 表示重定向的地址,此时,需要把 Location 的 ip 修改为服务器A 的 ip location / { proxy_pass http://y.y.y.y:
阅读全文
摘要:官方自带 http 模块 python -m SimpleHTTPServer 8000 添加上传功能 github 仓库 simple_http_server #!/usr/bin/python # -*- coding: UTF-8 -*- """Simple HTTP Server With
阅读全文
摘要:Linux command line tool for uploading files over HTTP as multipart/form-data? curl -F "file=@localfile;filename=nameinpost" url.com
阅读全文
摘要:alpine 镜像 软件源修改为国内的 修改时区为国内 安装字体 FROM openjdk:8-alpine ENV LANG en_US.UTF-8 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/
阅读全文
摘要:Convert Sorted Array to Binary Search Tree Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanc
阅读全文
摘要:Valid Palindrome A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characte
阅读全文