sqlalchemy是一种常用的ORM(Object-Relational Mapping对象关系映射)框架。 1 from sqlalchemy import create_engine, Column, Integer, String, DateTime, Float, Date, BLOB, ...
分类:
数据库 时间:
2020-06-19 12:24:49
阅读次数:
62
目前有好几种办法可以用来同步yum仓库,但是都有其弊端,下面是我整理的几种yum仓库创建办法 1.使用rsync从清华源同步(缺点:平台有限制,想同步很难) #同步c6和c7 rsync -zaP --exclude-from /usr/share/nginx/html/rsync_exclude2 ...
分类:
其他好文 时间:
2020-06-19 12:23:13
阅读次数:
73
mysql多实例部署 下载软件 [root@localhost ~]# ls anaconda-ks.cfg mysql-5.7.29-linux-glibc2.12-x86_64.tar.gz #安装perl [root@localhost ~]# yum -y install perl 配置用户 ...
分类:
数据库 时间:
2020-06-19 12:10:00
阅读次数:
44
import time def count_time(func): def wrapper(*args, **kwargs): start_time = time.time() count = func(*args, **kwargs) print('程序共计%s秒' % (time.time() ...
分类:
其他好文 时间:
2020-06-19 10:36:19
阅读次数:
45
代码: #coding=utf-8 import requests import json url='http://127.0.0.1:4444/wd/hub/session' data = json.dumps({ 'capabilities':{ 'browserName':'Microsoft ...
分类:
其他好文 时间:
2020-06-19 01:13:55
阅读次数:
84
今天查问题时, ssh 登录后台发现 需要输入密码,输入密码后弹出一个二维码, 然后扫码获取秘钥。输入秘钥登陆!!! 真是恶心了一把,找手机都花了不少时间!!!! 那么怎样干掉输入密码这些操作呢??? 所以需要思考一番!!!! man 文档中有 When bash is invoked as an ...
分类:
系统相关 时间:
2020-06-19 00:35:57
阅读次数:
81
需求目前线上环境系统通过Jenkins发布时,需先将发布的ECS实例手动下线,即在阿里云SLB手动修改权重为0。然后在Jenkins中发布构建,发布完成后,又在SLB上手动修改权重。现为了省去每次登录阿里云SLB控制台,手动修改SLB权重这一繁琐的手动操作。现通过调用阿里云SLB的API结合Python程序去实现,通过API实现对SLB下的ECS实例的下线、移除、增加等操作,实际情况用的比较多的是
分类:
编程语言 时间:
2020-06-19 00:34:18
阅读次数:
133
问题: 3个client, 3个不同的time 先从windows来看: 1. net time win16: Could not locate a time-server. win19: PS U:\Multiprotocols-Stress-Tool> net time Current time ...
分类:
其他好文 时间:
2020-06-18 22:06:21
阅读次数:
69
select break go中使用for select 结构,select的break只能跳出break,不能跳出for循环 package main import ( "fmt" "time" ) func main() { ch := make(chan int) ok := make(cha ...
分类:
其他好文 时间:
2020-06-18 22:05:04
阅读次数:
61
解决方法: 1.以管理员身份运行power shell2.输入 set-ExecutionPolicy RemoteSigned然后输入A或者Y 回车问题解决(注意需要用管理员打开!) 打开power shell最快就是右键win的徽标,选择 Windows PowerShell(管理员) ...
分类:
移动开发 时间:
2020-06-18 21:54:53
阅读次数:
251