03 2021 档案

摘要:import psutil def get_disk_info(): content = "" for disk in psutil.disk_partitions(): if 'cdrom' in disk.opts or disk.fstype == '': continue disk_name 阅读全文
posted @ 2021-03-10 11:06 奕呀! 阅读(792) 评论(0) 推荐(1)
摘要:#!/usr/bin/env python # -*- coding:utf-8 -*- import sys import time for a in range(101): #print a b = 100 -a #print b #sys.stdout.write(("\r[%s%s]%0.2 阅读全文
posted @ 2021-03-10 10:32 奕呀! 阅读(39) 评论(0) 推荐(0)
摘要:安装weblogic版本:wls1036_linux64 #!/bin/bash ############################################### echo "" echo "" echo "**************************************" 阅读全文
posted @ 2021-03-05 09:19 奕呀! 阅读(733) 评论(0) 推荐(0)
摘要:1. 我用的是桥接上网: 2. 连接外部电脑网络与之对应: 3. 编辑网路配置 : vi /etc/sysconfig/network-scripts/ifcfg-ens33 下图需要配置标注的地方 重启:systemctl restart network.serice 4. 查询配置时候成功 输入 阅读全文
posted @ 2021-03-04 09:07 奕呀! 阅读(375) 评论(0) 推荐(0)
摘要:1.请按照这样的日期格式(xxxx-xx-xx)每日生成一个文件,例如今天生成的文件为2019-04-26.log, 并且把磁盘的使用情况写到到这个文件中。 import time, os new_time = time.strftime("%Y-%m-%d") disk_status = os.p 阅读全文
posted @ 2021-03-04 09:05 奕呀! 阅读(349) 评论(0) 推荐(0)