会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
infaaf
KEEP RUNNIG
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2018年8月28日
cbv fbv decorator
摘要: 1 2 3 4 5
阅读全文
posted @ 2018-08-28 22:27 EngineTang
阅读(128)
评论(0)
推荐(0)
2018年8月25日
django celery
摘要: 基本步骤 安装 install redisyum install -y http://rpms.famillecollet.com/enterprise/remi-release-7.rpmyum --enablerepo=remi install redisservice redis startc
阅读全文
posted @ 2018-08-25 20:04 EngineTang
阅读(361)
评论(1)
推荐(0)
ansible 2.4+ allinone 接口
摘要: 参考/整理/改写 allinone接口 ,实现playbook,adhoc 调用。 日志部分待完善
阅读全文
posted @ 2018-08-25 15:32 EngineTang
阅读(420)
评论(0)
推荐(0)
2018年8月24日
paramiko
摘要: ssh = paramiko.SSHClient() # 创建ssh对象ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())ssh.connect(hostname=ip, port=int(port), username=usernam
阅读全文
posted @ 2018-08-24 15:31 EngineTang
阅读(147)
评论(0)
推荐(0)
2018年8月19日
django logging
摘要: 使用
阅读全文
posted @ 2018-08-19 22:39 EngineTang
阅读(141)
评论(0)
推荐(0)
2018年8月18日
[转载]ansible 2.4+接口
摘要: #!/usr/bin/python # --*-- coding:utf-8 --*-- # 解决办法 import json import logging from ansible.parsing.dataloader import DataLoader from ansible.vars.manager import VariableManager from ansible.inven...
阅读全文
posted @ 2018-08-18 23:26 EngineTang
阅读(243)
评论(0)
推荐(0)
2018年8月11日
ansible 补全编辑中
摘要: ubuntu pip3 install ansible 依赖关系 apt-get install libssl-dev apt-get install libffi-dev pip3 install cffi # python ansible3 依赖包 pip3 install cryptograp
阅读全文
posted @ 2018-08-11 19:30 EngineTang
阅读(511)
评论(0)
推荐(0)
2018年8月7日
centos7 安装python3.7
摘要: yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make ./configure prefix=/usr/local/python3 mak
阅读全文
posted @ 2018-08-07 17:31 EngineTang
阅读(150)
评论(0)
推荐(0)
2018年8月6日
rsyslog定制
只有注册用户登录后才能阅读该文。
阅读全文
posted @ 2018-08-06 11:09 EngineTang
阅读(5)
评论(0)
推荐(0)
2018年8月4日
字符串形式导入模块
摘要: import importlib importlib.import_module('app01') importlib.import_module('app01.models') m=importlib.import_module('app01.models') m.UserProfile
阅读全文
posted @ 2018-08-04 12:25 EngineTang
阅读(237)
评论(0)
推荐(0)
2018年7月28日
pycharm 远程环境开发调试
摘要: https://blog.csdn.net/ll641058431/article/details/53049453 pip install pydevd
阅读全文
posted @ 2018-07-28 11:19 EngineTang
阅读(229)
评论(0)
推荐(0)
ubuntu 18.04 及初始化python3环境
摘要: 网卡配置 root@u1804s:~# cat /etc/netplan/50-cloud-init.yaml # This file is generated from information provided by # the datasource. Changes to it will not
阅读全文
posted @ 2018-07-28 10:36 EngineTang
阅读(229)
评论(0)
推荐(0)
2018年7月23日
nbu备份虚拟机
摘要: http://blog.sina.com.cn/s/blog_6965d96d0102viee.html https://download.csdn.net/download/shixiaona01998/10181944 http://blog.51cto.com/3402313/1241421
阅读全文
posted @ 2018-07-23 17:33 EngineTang
阅读(612)
评论(0)
推荐(0)
2018年7月20日
转载 - sqlplus 连接
摘要: 范例: 仅启动 SQL*Plus 不登录到数据库$ sqlplus /nolog 以默认管理员登陆$ sqlplus / as sysdba 以数据库账户登录$ sqlplus$ sqlplus username$ sqlplus username@sid$ sqlplus username@//h
阅读全文
posted @ 2018-07-20 13:19 EngineTang
阅读(130)
评论(0)
推荐(0)
2018年7月12日
linux/centos/rhel同时安装oracle10g和11g
摘要: rhel 6.9环境 目标 linux / centos / redhat系统 同时安装oracle 10.2.0.4 和11.2.0.4 tip1:使用不同用户安装 tip2: 10.2.0.4通过安装10.2.0.1,打补丁升级 tip3: 11.2.0.4 安装包可以直接安装11.2.0.4版
阅读全文
posted @ 2018-07-12 15:30 EngineTang
阅读(689)
评论(0)
推荐(0)
2018年7月10日
多进程
摘要: 代码1 Queue (消息)队列 利用put/get 进行添加和消耗 由于多get了1次 ,end无法打印出,主程序等待。 程序2 共享数据之 Manage 结果 {'a': 'aa', 'b': 'bb'}[0, 1, '11', '11', '11']{} Process finished wi
阅读全文
posted @ 2018-07-10 21:41 EngineTang
阅读(130)
评论(0)
推荐(0)
2018年7月5日
drf笔记
摘要: get list retrieve post create delete destroy put update
阅读全文
posted @ 2018-07-05 13:33 EngineTang
阅读(156)
评论(0)
推荐(0)
2018年6月26日
单例模式
摘要: https://www.cnblogs.com/huchong/p/8244279.html 1.简单单实例,注意调用方式Foo.getinstance() 但存在线程安全问题 2 new方法
阅读全文
posted @ 2018-06-26 10:38 EngineTang
阅读(127)
评论(0)
推荐(0)
2018年6月22日
常用模块
摘要: 目录 1.os 2. 1 os 2 sys 3 shutil 补充os模块对于mv 和copy 支持 4 time time模块的3种格式,时间戳,结构化,字符串 转换图 5 datetime 6 http://www.cnblogs.com/wupeiqi/articles/4963027.htm
阅读全文
posted @ 2018-06-22 17:29 EngineTang
阅读(204)
评论(0)
推荐(0)
2018年6月21日
django form 使用bootstrap class时处理方式
摘要: 1
阅读全文
posted @ 2018-06-21 12:39 EngineTang
阅读(169)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告