12 2022 档案

摘要:mysql 是用用户名+ip来区分用户的,如下,是三个不同的用户 'username'@'localhost' 'username'@'127.0.0.1' 'username'@'%' 在 mysql,不同 ip 的同一用户尽量用同一个密码 参考: MySQL has two different 阅读全文
posted @ 2022-12-30 10:21 iyiluo 阅读(340) 评论(0) 推荐(0) 编辑
摘要:方案一: 服务器A -> 后端服务器B 服务器A 代理后端流量,有时后端服务器会发送一些重定向响应,用 http 的 Location 表示重定向的地址,此时,需要把 Location 的 ip 修改为服务器A 的 ip location / { proxy_pass http://y.y.y.y: 阅读全文
posted @ 2022-12-27 16:56 iyiluo 阅读(1160) 评论(0) 推荐(0) 编辑
摘要:官方自带 http 模块 python -m SimpleHTTPServer 8000 添加上传功能 github 仓库 simple_http_server #!/usr/bin/python # -*- coding: UTF-8 -*- """Simple HTTP Server With 阅读全文
posted @ 2022-12-09 10:00 iyiluo 阅读(74) 评论(0) 推荐(0) 编辑
摘要:Linux command line tool for uploading files over HTTP as multipart/form-data? curl -F "file=@localfile;filename=nameinpost" url.com 阅读全文
posted @ 2022-12-09 09:56 iyiluo 阅读(97) 评论(0) 推荐(0) 编辑
摘要: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/ 阅读全文
posted @ 2022-12-09 09:17 iyiluo 阅读(574) 评论(0) 推荐(0) 编辑
摘要: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 阅读全文
posted @ 2022-12-01 18:27 iyiluo 阅读(19) 评论(0) 推荐(0) 编辑
摘要:Valid Palindrome A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characte 阅读全文
posted @ 2022-12-01 18:27 iyiluo 阅读(16) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示