摘要: 点击打开链接 Python的ORM框架SQLAlchemy基本操作和常用技巧,包含大量实例,非常好的一个学习SQLAlchemy的教程,需要的朋友可以参考下 python编程语言下的一款开源软件。提供了SQL工具包及对象关系映射(ORM)工具,使用MIT许可证发行。 MySQL InnoDB 使用, 阅读全文
posted @ 2017-07-14 01:38 明天OoO你好 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 效果如图所示: 1.框架用的flask 目录结构如下: 2.前端代码如下: table-test1.html 3.后端代码如下: 阅读全文
posted @ 2017-06-21 16:36 明天OoO你好 阅读(3695) 评论(2) 推荐(1) 编辑
摘要: # -*- coding:UTF-8 -*- import requests,time from collections import OrderedDict import threading from bs4 import BeautifulSoup as bp t3 = time.time() ths = [] # 存放线程 def get(num): dic =... 阅读全文
posted @ 2017-06-02 15:38 明天OoO你好 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 1. 安装rsync,如果要讲1.1.1.1的数据备份到2.2.2.2上,则在1.1.1.1上配置如下: /etc/rsyncd.conf uid = nobody gid = nobody use chroot = no max connections = 40 syslog facility = 阅读全文
posted @ 2017-05-19 15:37 明天OoO你好 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 有趣的linux命令:看看哪些文件正在变!watch -d -n 1 'df; ls -Alt -F /path' 阅读全文
posted @ 2017-05-17 14:55 明天OoO你好 阅读(154) 评论(0) 推荐(0) 编辑
摘要: mysql5.6 http://www.cnblogs.com/bookwed/p/5896619.html 安装完成后操作 mysql5.7 http://blog.csdn.net/wb96a1007/article/details/51559741 添加环境变量vim /etc/profile 阅读全文
posted @ 2017-05-17 13:41 明天OoO你好 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ntpdate ip或网址阿里云提供公共NTP服务,由于阿里云有大量外售的云主机以及YunOS手机天猫魔盒等都需要精确时间同步,因此建设了这一基础设施,公网均可访问,授时信号来自GPS、北斗两套卫星信号,并配备原子钟守时,以下7个域名提供服务,大家可以直接使用。http://time1.aliyun.com http://time2.aliyun.com http://time3.aliyun.... 阅读全文
posted @ 2017-05-02 09:29 明天OoO你好 阅读(345) 评论(0) 推荐(0) 编辑
摘要: import winrm win2012 = winrm.Session('http://192.168.0.19:5985/wsman',auth=('wt','635870838')) r = win2012.run_cmd('D: &' ' cd python &' ' type s.txt &' ... 阅读全文
posted @ 2017-04-24 16:07 明天OoO你好 阅读(12829) 评论(1) 推荐(0) 编辑
摘要: $ tar -zxvf apache-flume-1.7.0-bin.tar.gz $ cd apache-flume-1.7.0-bin 4、创建flume-env.sh文件 cp conf/flume-env.sh.template conf/flume-env.sh 5、配置java的环境变量 阅读全文
posted @ 2017-04-21 16:36 明天OoO你好 阅读(550) 评论(0) 推荐(0) 编辑
摘要: ips = ['', '123.125.71.49', '164.132.161.48', '217.182.132.55', '217.182.132.55', '217.182.132.94', '220.181.108.162', '51.255.65.47', '51.255.65.6', '51.255.65.77', '51.255.65.96'] r = Co... 阅读全文
posted @ 2017-04-21 11:14 明天OoO你好 阅读(263) 评论(0) 推荐(0) 编辑