摘要: 1. 首先关闭"NetworkManager" 服务。 然后编辑网卡的配置文件将里面的NAME DEVICE项修改为eth0 vim /etc/sysconfig/network-scripts/ifcfg-eno16777736 2. 重命名该配置文件。 [root@localhost yum.r 阅读全文
posted @ 2018-05-09 15:36 tengfei520 阅读(2702) 评论(0) 推荐(0) 编辑
摘要: 1、selinux开启 centos7关闭方法: 2、时间不同步 同步方式: ntpdate -u asia.pool.ntp.org 阅读全文
posted @ 2018-05-09 14:21 tengfei520 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python # data:2018/4/20 # user:fei # -*- coding: utf-8 -*- import json import sys import time import openpyxl import json creat_data=time.strftime('%Y-%m-%d',time.localtime()) i=1 wb = op... 阅读全文
posted @ 2018-05-09 14:15 tengfei520 阅读(130) 评论(0) 推荐(0) 编辑
摘要: import random import string n = 0; while n<10: str_source = string.ascii_letters + string.digits + string.punctuation str_list = random.sample(str_sou 阅读全文
posted @ 2018-05-09 14:13 tengfei520 阅读(1642) 评论(0) 推荐(0) 编辑