上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 使用apt安装的supervisor,默认是以root账户重启进程的,会导致生成的日志都在root用户组,非root用户下的程序无法读写这些日志导致程序无法运行 使用pip install supervisor 安装方式能使用非root账户启动进程 以下方法是pip安装方式下如何配置开机启动项 创建 阅读全文
posted @ 2020-12-02 17:47 John-Python 阅读(2621) 评论(0) 推荐(0) 编辑
摘要: explain explain模拟优化器执行SQL语句,在5.6以及以后的版本中,除过select,其他比如insert,update和delete均可以使用explain查看执行计划,从而知道mysql是如何处理sql语句,分析查询语句或者表结构的性能瓶颈。作用1、表的读取顺序2、数据读取操作的操 阅读全文
posted @ 2020-11-25 17:39 John-Python 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 什么是 Uvicorn ? 答:Uvicorn 是基于 uvloop 和 httptools 构建的非常快速的 ASGI 服务器。 什么是 uvloop 和 httptools ? 答: uvloop 用于替换标准库 asyncio 中的事件循环,使用 Cython 实现,它非常快,可以使 asyn 阅读全文
posted @ 2020-11-16 21:43 John-Python 阅读(8057) 评论(0) 推荐(1) 编辑
摘要: 1. conda --version #查看conda版本,验证是否安装 2. conda update conda #更新至最新版本,也会更新其它相关包 3. conda update --all #更新所有包 4. conda update package_name #更新指定的包 5. con 阅读全文
posted @ 2020-11-16 11:37 John-Python 阅读(171) 评论(0) 推荐(0) 编辑
摘要: (1)安装 sudo apt-get install zsh (2)设置默认shell(默认装到/bin/zsh ) which zsh | sudo tee -a /etc/shells sudo chsh -s /bin/zsh 二.配置(通过oh my zsh) 1.安装 oh my zsh 阅读全文
posted @ 2020-11-10 14:59 John-Python 阅读(1339) 评论(0) 推荐(0) 编辑
摘要: 1、安装zsh sudo apt-get install zsh 2、安装 oh my zsh git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh 关于oh my zsh可以看如下的链接:https://ohmyz.s 阅读全文
posted @ 2020-11-10 14:46 John-Python 阅读(1967) 评论(0) 推荐(0) 编辑
摘要: /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置 英文描述为: # /etc/profile # System wide environment and startup program 阅读全文
posted @ 2020-11-10 14:26 John-Python 阅读(259) 评论(0) 推荐(0) 编辑
摘要: import asyncio import aiohttp from aiosocksy.connector import ProxyConnector, ProxyClientRequest async def fetch(url): connector = ProxyConnector() so 阅读全文
posted @ 2020-10-14 01:35 John-Python 阅读(1550) 评论(0) 推荐(0) 编辑
摘要: 为什么要特意讲一下这个,是因为 alembic 无法自动检测是否对字段名进行了重命名操作,需要我们手动添加相关语句。 假设有下面这样一个 Model class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=T 阅读全文
posted @ 2020-09-11 11:12 John-Python 阅读(737) 评论(0) 推荐(0) 编辑
摘要: supervisor配置文件 ; Sample supervisor config file. [unix_http_server] file=/var/run/supervisor/supervisor.sock ; socket 路径 ;chmod=0700 ; socket 文件的权限 ;ch 阅读全文
posted @ 2020-09-09 15:00 John-Python 阅读(2207) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 11 下一页