03 2022 档案

摘要:转载:https://v3u.cn/a_id_208 阅读全文
posted @ 2022-03-26 11:12 LiShiChao 阅读(140) 评论(0) 推荐(0)
摘要:vue项目配置二级目录,刷新后404 nginx配置 location /vue { alias /www/vue; # vue项目路径 index index.html; try_files $uri $uri/ /index.html =404; } 阅读全文
posted @ 2022-03-22 13:56 LiShiChao 阅读(110) 评论(0) 推荐(0)
摘要:安装模块 pip install passlib 生成加密密码 python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt('123')" 阅读全文
posted @ 2022-03-09 11:58 LiShiChao 阅读(137) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-03-09 11:02 LiShiChao 阅读(43) 评论(0) 推荐(0)
摘要:创建项目时指定环境变量 GOPROXY=https://goproxy.cn,direct 添加go fmt和goimports 阅读全文
posted @ 2022-03-04 15:52 LiShiChao 阅读(42) 评论(0) 推荐(0)
摘要:安装依赖模块 yum install nginx-mod-stream 配置转发 # 与http区块平级 stream { upstream redis_6383 { server 127.0.0.1:6383; } server { listen 6386; proxy_pass redis_63 阅读全文
posted @ 2022-03-03 11:47 LiShiChao 阅读(107) 评论(0) 推荐(0)
摘要:最终版本: 启动docker并进行端口映射后,docker会在iptables中添加DNAT规则,将收到的对应端口的包转换ip并进行转发,同时添加规则将所有来自docker网域的ip进行转换。 但是在Centos7上出现docker可以正常访问外网,但是外网发出的请求在经过eth1接收转发后送达不到 阅读全文
posted @ 2022-03-02 15:00 LiShiChao 阅读(303) 评论(0) 推荐(0)