会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
John-Python
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
11
下一页
2020年9月9日
Supervisor使用详解
摘要: 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
阅读(2285)
评论(0)
推荐(0)
2020年8月28日
Python 操作RabbitMq
摘要: 一、简介: RabbitMq 是实现了高级消息队列协议(AMQP)的开源消息代理中间件。消息队列是一种应用程序对应用程序的通行方式,应用程序通过写消息,将消息传递于队列,由另一应用程序读取 完成通信。而作为中间件的 RabbitMq 无疑是目前最流行的消息队列之一。 RabbitMq 应用场景广泛:
阅读全文
posted @ 2020-08-28 19:54 John-Python
阅读(4349)
评论(0)
推荐(0)
2020年8月27日
手动配置代理,让终端上网
摘要: export ALL_PROXY=socks5://127.0.0.1:12377
阅读全文
posted @ 2020-08-27 10:51 John-Python
阅读(325)
评论(0)
推荐(0)
2020年8月25日
mac下镜像飞速安装Homebrew教程
摘要: Homebrew是一款包管理工具,目前支持macOS和linux系统。主要有四个部分组成: brew、homebrew-core 、homebrew-cask、homebrew-bottles。 本文主要介绍Homebrew安装方式以及如何加速访问,顺便普及一些必要的知识。 1. 脚本说明 Home
阅读全文
posted @ 2020-08-25 22:05 John-Python
阅读(319)
评论(0)
推荐(0)
Docker理论与实践
摘要: 1. image运行与删除 运行image # 命令形式:docker run -ti --rm image $ docker run -ti --rm hello-world Hello from Docker! This message shows that your installation
阅读全文
posted @ 2020-08-25 13:39 John-Python
阅读(1297)
评论(0)
推荐(0)
2020年8月19日
MySQL show processlist如何进行过滤
摘要: show processlist展示的内容是从information_schema.processlist数据表查询得到 所以可以使用SQL语句的条件查询进行过滤 mysql> desc information_schema.processlist; + + + + + + + | Field |
阅读全文
posted @ 2020-08-19 09:52 John-Python
阅读(1544)
评论(0)
推荐(0)
2020年8月13日
xmlrpc用法
摘要: 服务端 from xmlrpc.server import SimpleXMLRPCServer # 调用函数 def respon_string(str): return "get string:%s" % str if __name__ == '__main__': server = Simpl
阅读全文
posted @ 2020-08-13 17:11 John-Python
阅读(322)
评论(0)
推荐(0)
通过XML-RPC API在本地远程控制supervisor
摘要: 客户端 from xmlrpc.client import ServerProxy if __name__ == '__main__': server = ServerProxy("http://localhost:9001/RPC2") # 初始化服务器 print(server.system.l
阅读全文
posted @ 2020-08-13 17:10 John-Python
阅读(687)
评论(0)
推荐(0)
2020年8月11日
Pandas打印显示完整行列
摘要: pd.set_option('display.max_rows', 50) pd.set_option('display.max_columns', 500) pd.set_option('display.width', 1000)
阅读全文
posted @ 2020-08-11 16:57 John-Python
阅读(3386)
评论(0)
推荐(0)
2020年7月19日
Python SQLAlchemy 连接MySQL的CURD操作 使用上下文管理 session
摘要: 使用 contextmanager 来管理 from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session,sessionmaker db_connect = "mysql+pymysql://root:p
阅读全文
posted @ 2020-07-19 16:43 John-Python
阅读(635)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
11
下一页
公告