wkt blog

  • About
  • Video
  • About
  • Video

Month: November 2018

supervisor进程管理

by admin/November 23, 2018November 23, 2018/flask, python基础, 笔记

以supervisor管理celery进程为例 一 安装supervisor 二 配置 三 启动和关闭 四 打开web监听 安装supervisor python3 无法直接使用pypi源安装, 使用 pip3 install git+https://github.com/Supervisor/supervisor 配置 生成默认的配置文件 echo_supervisord_conf > /etc/supervisord.conf 添加自定义配置 在生成的conf文件最后添加 [program:tiis_is_name] command=/home/wukt/.virtualenvs/p3.6/bin/celery worker -l INFO -c 1 -A flaskrun.celery –beat –loglevel debug –logfile celery_beat.log stdout_logfile=celeryd.log stderr_logfile=celeryd.log autostart=true […]

常用

by admin/November 6, 2018November 6, 2018/笔记

已有密钥生成公钥 openssl rsa -in app_private_key.pem -put app_public.pem 支付宝回调参数 ipdb> request.form ImmutableMultiDict([(‘gmt_create’, ‘2018-11-06 17:24:31’), (‘charset’, ‘utf-8’), (‘gmt_payment’, ‘2018-11-06 17:24:46’), (‘notify_time’, ‘2018-11-06 17:24:47’), (‘subject’, ‘elllfjdl’), (‘sign’, ‘rB/dXq+3IkqGwMSSOG1DpiGzGGfe2L7nTBNP+XGVhDiHzL1rRGCXQfIrApd+05d9hP/sfAq+sSB+PvvMbKxGDBPNWFEBKiFj5pzo+bnDiUMF6MDGaV2M7OCq8xkr/sl4yPYv/GhqT7I3TUYRgqdrW8mvPC7EBupW0TWgBX4ghb7F8FX47EJCkUYCprbHZX/hW0GxJtGxYxq6s+3qeDktICaOk9c4jsKoZDHMpCZfoco6/Rec8g7nnRRORiWxYX/YQF5tsLowzmz1I7owRL6m2pB1ccfH3NVEQdfScToEgl5D9D5Xl7VEa2eWoDQm5NocUuuFfkUXsY7fOryLtoh/UA==’), (‘buyer_id’, ‘2088102176406494’), (‘invoice_amount’, ‘0.01’), (‘version’, ‘1.0’), (‘notify_id’, ‘1997cfd51e7c1de6050d2d11205ca77js9’), (‘fund_bill_list’, ‘[{“amount”:”0.01″,”fundChannel”:”ALIPAYACCOUNT”}]’), (‘notify_type’, ‘trade_status_sync’), (‘out_trade_no’, ‘kfcDNMZ8nZ8jfqpmg5baa4qlFufoRps1’), (‘total_amount’, […]

Alembic隐藏数据库配置信息

by admin/November 2, 2018/flask, 笔记

Alembic数据库迁移使用参考: https://blog.csdn.net/deerlux/article/details/50181997 此迁移工具的详细配置信息在alembic.ini文件中, 其中包括 sqlalchemy.url = driver://user:pass@localhost/dbname 为了防止不小心将密码信息提交, 可将此行删除,并修改alembic/env.py: import sys sys.path.append(os.path.realpath(‘.’)) from planet.common.base_model import DB_PARAMS from planet import models # this is the Alembic Config object, which provides # access to the values within the .ini file in use. […]

Recent Posts

  • 读取txt大文件并插入到mysql
  • 自建Pypi反向代理服务器
  • Allow All Content Security Policy
  • How to fetch all Git branches
  • 手动申请 Let’s Encrypt 泛域名证书

Archives

  • February 2021
  • December 2020
  • November 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • January 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • June 2017
  • May 2017
  • April 2017
  • April 2016

友情链接

  • Harttle
  • 张俊杰的微博客
  • 蔣振飞的博客
  • 饲养员的窝
Proudly powered by WordPress | Theme: ShowMe by NEThemes.