随笔分类 -  python

摘要:最近有自动发送需要优化的图片资源列表需求,因此有了下面脚本 1 #!/usr/local/bin/python3 2 # coding:utf-8 3 4 # 5 # Author: changbo - 541330702@qq.com 6 # Last modified: 2022-01-19 7 阅读全文
posted @ 2022-01-19 17:51 知_行 阅读(82) 评论(0) 推荐(0)
摘要:#!/usr/local/bin/python3 # -*- coding:utf-8 -*- # # Author: changbo - 541330702@qq.com # Last modified: 2022-01-07 # Filename: miniodeloldfile.py # De 阅读全文
posted @ 2022-01-07 18:30 知_行 阅读(2058) 评论(0) 推荐(0)
摘要:执行/usr/bin/rsync -av --delete --exclude /usr/local/openresty/nginx/html/Uploadfile/xxxx /usr/local/openresty/nginx/html/Uploadfile /mnt时 排除选项可生效,但将该语句 阅读全文
posted @ 2022-01-05 14:53 知_行 阅读(673) 评论(0) 推荐(0)
摘要:最近在用Django3写运维管理平台,部分完成后上线使用,怕有性能问题,因此采用supervisord来管理启动 supervisord配置如下 1 [unix_http_server] 2 file=/var/run/supervisor/supervisor.sock ; (the path t 阅读全文
posted @ 2021-08-21 11:06 知_行 阅读(262) 评论(0) 推荐(0)
摘要:routing.py 1 from django.urls import re_path 2 from . import consumers 3 4 websocket_urlpatterns = [ 5 re_path(r'ws/', consumers.ChatConsumer.as_asgi( 阅读全文
posted @ 2021-08-21 10:52 知_行 阅读(867) 评论(0) 推荐(0)
摘要:PHP网站需要备份,代码如下 END! 阅读全文
posted @ 2018-02-23 18:25 知_行 阅读(264) 评论(0) 推荐(0)
摘要:由于公司外网地址是动态变化的,但又必须做到仅公司能访问,以下是实现方式 获取公司外网ip 发送公网外网ip 自动修改nginx可访问ip END! 阅读全文
posted @ 2018-01-04 09:46 知_行 阅读(1044) 评论(0) 推荐(0)
摘要:mysql每隔5分钟增备一次 1,逻辑示意图 2,目录结构图 3,producer 4,consumer 5,mysql增备脚本 python新手,欢迎吐槽 END! 阅读全文
posted @ 2017-09-03 18:01 知_行 阅读(559) 评论(0) 推荐(0)
摘要:#!/usr/local/anaconda3/bin/python # encoding:utf-8 # Create your views here. # ==================================================== # Author: chang - EMail:changbo@hmg100.com # Last modified: 2017-0... 阅读全文
posted @ 2017-07-20 15:23 知_行 阅读(302) 评论(0) 推荐(0)
摘要:server 端 client 端 END! 阅读全文
posted @ 2017-07-06 18:14 知_行 阅读(1498) 评论(0) 推荐(0)
摘要:效果截图 END! 阅读全文
posted @ 2017-06-27 15:39 知_行 阅读(938) 评论(0) 推荐(0)
摘要:一个小功能,起因是禁止用户使用rm END! 阅读全文
posted @ 2017-06-20 15:48 知_行 阅读(633) 评论(0) 推荐(0)
摘要:END! 阅读全文
posted @ 2017-06-06 14:48 知_行 阅读(191) 评论(0) 推荐(0)
摘要:END! 阅读全文
posted @ 2017-06-02 13:07 知_行 阅读(1212) 评论(0) 推荐(0)
摘要:html 页面 效果图 END! 阅读全文
posted @ 2017-05-13 13:29 知_行 阅读(2081) 评论(0) 推荐(0)
摘要:通过nginx日志 END! 阅读全文
posted @ 2017-05-08 00:39 知_行 阅读(534) 评论(0) 推荐(0)
摘要:模拟日志脚本 模拟日志切割过程中初始化脚本参数 cp access.log access20170408.log && echo > access.log && echo '0'> offset.txt 成功 End! 阅读全文
posted @ 2017-04-28 21:10 知_行 阅读(930) 评论(0) 推荐(0)
摘要:mysqldump 单表备份,py还原 调整下允许的包大小 max_allowed_packet = 10M END! 阅读全文
posted @ 2017-04-28 14:02 知_行 阅读(197) 评论(0) 推荐(0)
摘要:END! 阅读全文
posted @ 2017-04-22 13:38 知_行 阅读(1079) 评论(0) 推荐(0)
摘要:亲测,可用!!!!!!!!!!!!!!!!!!!! python3.5 uwsgi2.0.15 django 1.11 nginx 配置 在manage.py同级目录中新建uwsgi.ini uwsgi 启动 uwsgi --ini uwsgi.ini 重载nginx配置文件 END! 阅读全文
posted @ 2017-04-20 17:30 知_行 阅读(295) 评论(0) 推荐(0)