Toggle navigation
Ricky Blog
Home
About
Archive
Ricky Blog
「记录生活过程」
处理前后端跨域
要么nginx处理跨域,要么后端处理跨域(如springboot),不要nginx和后端同时处理跨域,会有问题。 nginx 处理跨域 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 server { listen 80; server_name www.example.com; root ...
Posted by Ricky Blog on March 26, 2025
免费gpt
https://chat04.a1r.cc/#/chat/1002 https://bpcavm.aitianhu1.top/#/chat/1002
Posted by Ricky Blog on March 26, 2025
不同环境中使用网络代理
1. linux 1 2 3 export http_proxy=http://127.0.0.1:7890 && export https_proxy=http://127.0.0.1:7890 取消代理:unset http_proxy && unset https_proxy 2. docker 1 2 3 4 5 6 7 8 9 mkdir -p ...
Posted by Ricky Blog on March 26, 2025
一行代码跑httpserver
Python 2.x $ python -m SimpleHTTPServer 8000 Python 3.x $ python -m http.server 8000 访问:http://localhost:8000
Posted by Ricky Blog on March 26, 2025
Rc.local不生效解决
较高版本且启用了SystemD的Linux发行版中可能存在rc.local无法开机自动执行的情况存在。 解决: 1 2 3 chmod -v +x /etc/rc.local chmox -v +x /etc/rc.d/rc.local systemctl enable rc-local
Posted by Ricky Blog on March 26, 2025
Nginx使用
nginx规范 nginx安装 自动化安装 指定用户启动子进程 开机自启动 nginx固定日志规范 日志采集/切割 文件gzip压缩 map 1 2 3 4 map $real_ip $allowed_ips { default 0; ~^10\.[0-9]+\.[0-9]+\.[0-9]+$ 1; } 解析:$real_ip的值在10.0.0.0/8...
Posted by Ricky Blog on March 26, 2025
Github Push超时设置代理处理
前提:自己有翻墙代理,开了代理并不意味git可以用到代理,要配置以下规则: 1 2 git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080
Posted by Ricky Blog on March 26, 2025
Docker & docker Compose使用
1 2 3 4 5 6 7 8 9 10 mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["xxx"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker 国内拉doc...
Posted by Ricky Blog on March 26, 2025
Curl使用
1 curl -o /dev/null -s -w time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_appconnect:"\t"%{time_appconnect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_...
Posted by Ricky Blog on March 26, 2025
Windows Powershell命令
1. Powershell 命令 1 2 3 4 5 6 Clear-DnsClientCache # 清除 dns 缓存(替换掉 `ipconfig /flushdns`) Get-DnsClientCache # 查看 dns 缓存 Resolve-DnsName baidu.com # 解析域名 tasklist /svc | findstr TermService # 查看远...
Posted by Ricky Blog on March 26, 2025
← Newer Posts
Older Posts →
FEATURED TAGS
ABOUT ME
be like dd..
FRIENDS