摘要:
import random import string def GenKey(length): chars = string.ascii_letters + string.digits return ''.join([random.choice(chars) for i in range(length)]) def SaveKey(content): f = op... 阅读全文
摘要:
1 #/bin/bash 2 NETPWD='/etc/sysconfig/network-scripts/' 3 read -p "please enten net num(1,2,3,4) : " NUM 4 EM="$NETPWD"ifcfg-em$NUM 5 read -p "please enten ip last num : " NUM1 6 sed -i 's/ONBO... 阅读全文
摘要:
1、进入MySQL,创建一个新用户root,密码为root: 格式:grant 权限 on 数据库名.表名 to 用户@登录主机 identified by “用户密码”; grant select,update,insert,delete on . to root@192.168.1.12 ide 阅读全文