随笔分类 - 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
阅读全文
摘要:#!/usr/local/bin/python3 # -*- coding:utf-8 -*- # # Author: changbo - 541330702@qq.com # Last modified: 2022-01-07 # Filename: miniodeloldfile.py # De
阅读全文
摘要:执行/usr/bin/rsync -av --delete --exclude /usr/local/openresty/nginx/html/Uploadfile/xxxx /usr/local/openresty/nginx/html/Uploadfile /mnt时 排除选项可生效,但将该语句
阅读全文
摘要:最近在用Django3写运维管理平台,部分完成后上线使用,怕有性能问题,因此采用supervisord来管理启动 supervisord配置如下 1 [unix_http_server] 2 file=/var/run/supervisor/supervisor.sock ; (the path t
阅读全文
摘要: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(
阅读全文
摘要:由于公司外网地址是动态变化的,但又必须做到仅公司能访问,以下是实现方式 获取公司外网ip 发送公网外网ip 自动修改nginx可访问ip END!
阅读全文
摘要:mysql每隔5分钟增备一次 1,逻辑示意图 2,目录结构图 3,producer 4,consumer 5,mysql增备脚本 python新手,欢迎吐槽 END!
阅读全文
摘要:#!/usr/local/anaconda3/bin/python # encoding:utf-8 # Create your views here. # ==================================================== # Author: chang - EMail:changbo@hmg100.com # Last modified: 2017-0...
阅读全文
摘要:模拟日志脚本 模拟日志切割过程中初始化脚本参数 cp access.log access20170408.log && echo > access.log && echo '0'> offset.txt 成功 End!
阅读全文
摘要:mysqldump 单表备份,py还原 调整下允许的包大小 max_allowed_packet = 10M END!
阅读全文
摘要:亲测,可用!!!!!!!!!!!!!!!!!!!! python3.5 uwsgi2.0.15 django 1.11 nginx 配置 在manage.py同级目录中新建uwsgi.ini uwsgi 启动 uwsgi --ini uwsgi.ini 重载nginx配置文件 END!
阅读全文

浙公网安备 33010602011771号