03 2022 档案
摘要:转载:https://v3u.cn/a_id_208
阅读全文
摘要:vue项目配置二级目录,刷新后404 nginx配置 location /vue { alias /www/vue; # vue项目路径 index index.html; try_files $uri $uri/ /index.html =404; }
阅读全文
摘要:安装模块 pip install passlib 生成加密密码 python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt('123')"
阅读全文
摘要:ping测试 ansible pyproxy -m ping 执行shell命令 ansible pyproxy -m shell -a "ip a" 拷贝目录 ansible pyproxy -m synchronize -a "src=/opt/ops/test dest=/data delet
阅读全文
摘要:创建项目时指定环境变量 GOPROXY=https://goproxy.cn,direct 添加go fmt和goimports
阅读全文
摘要:安装依赖模块 yum install nginx-mod-stream 配置转发 # 与http区块平级 stream { upstream redis_6383 { server 127.0.0.1:6383; } server { listen 6386; proxy_pass redis_63
阅读全文
摘要:最终版本: 启动docker并进行端口映射后,docker会在iptables中添加DNAT规则,将收到的对应端口的包转换ip并进行转发,同时添加规则将所有来自docker网域的ip进行转换。 但是在Centos7上出现docker可以正常访问外网,但是外网发出的请求在经过eth1接收转发后送达不到
阅读全文

浙公网安备 33010602011771号