10 年前

SUPERVISOR进程管理器配置

supervisor   常用信号  

简介 Supervisor是一个进程控制系统. 它是一个C/S系统(注意: 其提供WEB接口给用户查询和控制), 它允许用户去监控和控制在类UNIX系统的进程. 它的目标与launchd, daemontools和runit有些相似, 但是与它们不一样的是, 它不是作为init(进程号pid是1)运行. 它是被用来控制进程, 并且它在启动的时候和一般程序并无二致. 安装和配置 安装 easy_i…

10 年前

KAFKA - While recording the replica LEO, the partition

疑难杂症   kafka  

Kafka报错: datacenter,11] hasn't been created. (kafka.server.ReplicaManager) [2017-03-30 15:45:46,583] WARN [Replica Manager on Broker 1]: While recording the replica LEO, the partition [lytx2-datacen…

10 年前

python 使用ssh隧道连接mysql

Shell/Python   sshtunnel  

环境 数据库只允许内网访问 服务器公网SSH访问 模块安装 pip install sshtunnel -i https://pypi.doubanio.com/simple/ pip install MySQL-python==1.2.5 -i https://pypi.doubanio.com/simple/ 方法 #!/usr/bin/python #_*_coding:utf-8_…