摘要: 1. 安装:pip install supervisor 2. 重定向默认配置:echo_supervisord_conf > /etc/supervisord.conf 3. 修改配置文件目录,修改tmp目录 4. 启动服务:supervisord -c /etc/supervisord.conf 阅读全文
posted @ 2021-02-02 15:33 半日闲1 阅读(270) 评论(0) 推荐(0)
摘要: 先将一个文件内容读取,再写入至另外一个文件 w+ 打开可读写文件,若文件存在则文件长度清为零,即该文件内容会消失。若文件不存在则建立该文件。 w 打开只写文件,若文件存在则文件长度清为0,即该文件内容会消失。若文件不存在则建立该文件。 with open("/data/test.txt", "r", 阅读全文
posted @ 2021-02-02 14:02 半日闲1 阅读(1201) 评论(0) 推荐(0)