上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 反向代理 xx.xx.xx.xx:80/test 转跳到 linux 127.0.0.1:88服务(其他机器) # 如果proxy_pass http://127.0.0.1:8081 不加【/】的话,请求地址会变为http://127.0.0.1:8081/api/get/user locatio 阅读全文
posted @ 2022-06-07 14:33 lxd670 阅读(21) 评论(0) 推荐(0) 编辑
摘要: Nginx配置介绍 一个http下面有多个server,一个server下面可以有多个location main # 全局配置,对全局生效 ├── events # 配置影响 Nginx 服务器或与用户的网络连接 ├── http # 配置代理,缓存,日志定义等绝大多数功能和第三方模块的配置 │ ├ 阅读全文
posted @ 2022-06-07 14:30 lxd670 阅读(42) 评论(0) 推荐(0) 编辑
摘要: npm使用 1.初始化项目 初始化目录 用来初始化生成package.json文件的 # 需要你输入信息 npm init # 直接使用默认信息(不需要手动输入了) npm init -y npm init初始化 npm init package name: (npm_demo) # 输入项目名称 阅读全文
posted @ 2022-05-20 09:51 lxd670 阅读(25) 评论(0) 推荐(0) 编辑
摘要: # aiopg返回结果变为python字典 ## 方法一 ```python import aiopg import asyncio dsn = 'dbname=aiopg user=aiopg password=passwd host=127.0.0.1 port=5432' async def 阅读全文
posted @ 2022-05-15 14:07 lxd670 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 连接 1.使用aiopg.connet()连接 dbname=[db名字] user=[用户名] password=[密码] host=[主机] port=[端口] ⚠️警告内容 warnings.warn(f"Unclosed connection {self!r}", ResourceWarni 阅读全文
posted @ 2022-05-14 18:40 lxd670 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.先安装python3依赖的 yum -y install gcc yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel d 阅读全文
posted @ 2022-05-11 16:31 lxd670 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Jupiter使用Python自带的虚拟环境 1.创建虚拟环境 可以直接点下面的Terminal或者连自己的开发机 mkdir test && cd test # 创建虚拟环境 python3 -m venv venv # 激活环境 source venv/bin/activate # 下载ipyk 阅读全文
posted @ 2022-05-10 17:23 lxd670 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.安装 使用mobaxterm docker更换镜像源 # 网易的镜像地址(创建daemon.json文件) vim /etc/docker/daemon.json { "registry-mirrors": ["https://http://hub-mirror.c.163.com"] } # 阅读全文
posted @ 2022-05-04 19:08 lxd670 阅读(19) 评论(0) 推荐(0) 编辑
摘要: pip换国内镜像 教程 临时使用 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package 升级 pip 到最新的版本 (>=10.0.0) 后进行配置: pip install pip -U # 如果您到 pip 默认 阅读全文
posted @ 2022-03-29 01:10 lxd670 阅读(256) 评论(0) 推荐(0) 编辑
摘要: python3虚拟环境 # 进入目录 cd my-probject # 创建虚拟环境 python3 -m venv myvenv 激活虚拟环境 | 平台 | Shell | 用于激活虚拟环境的命令 | | : | : | : | | POSIX | bash/zsh | $ source /bin 阅读全文
posted @ 2022-03-29 01:08 lxd670 阅读(30) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页