Fork me on GitHub
摘要: Shell脚本实现如下: #!/bin/bash IFS=$'\n' #echo自动将连续的空格当成一个处理 str='''abc b ad&& a''' num=$( echo -n $str | wc -c ) i=1 while [ $i -le $num ] do letter=`echo 阅读全文
posted @ 2022-04-21 17:52 星拂晓空 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: The Kubernetes cluster certificates have a lifespan of one year. If the Kubernetes cluster certificate expires on the Kubernetes master, then the kube 阅读全文
posted @ 2021-07-22 16:19 星拂晓空 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 在/etc/profile最后添加以下命令: export HISTTIMEFORMAT="%F %T `who am i | awk '{ print $1 $5 }'` " 清除本次会话history: history -r 阅读全文
posted @ 2021-07-15 16:29 星拂晓空 阅读(197) 评论(0) 推荐(0) 编辑
摘要: zabbix screen 图片以邮件形式发送 #! /usr/bin/env python #coding=utf-8 # Andy_f import time,os import urllib import urllib2 import cookielib import MySQLdb impo 阅读全文
posted @ 2020-09-24 16:27 星拂晓空 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash . /etc/profile logdir='/home/admin/zabbix/zabbix_log' mysql_host='localhost' mysql_user='root' mysql_passwd='*****' mysql_database='zabbix 阅读全文
posted @ 2020-09-24 16:13 星拂晓空 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 一、基础概念 Cent0S 7默认启用LVM2(Logical Volume Manager),把机器的一块硬盘分为两个区sda1和sda2,其中分区sda1作为系统盘/boot挂载,少量空间;sda2作为一个物理卷并且完全作为逻辑卷组VG(Volume Group)centos,在这个逻辑卷组ce 阅读全文
posted @ 2020-08-11 17:06 星拂晓空 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1. Run [Start] - [Server Manager] and Click [Tools] - [Internet Information Services (IIS) Manager]. 2. Select Hostname on the left pane and Click [FT 阅读全文
posted @ 2020-06-02 11:57 星拂晓空 阅读(980) 评论(0) 推荐(0) 编辑
摘要: On a Windows Platform Services Controller or vCenter Server with Embedded Platform Services Controller 1. Log in to vCenter Server with a domain admin 阅读全文
posted @ 2020-05-25 10:13 星拂晓空 阅读(1845) 评论(0) 推荐(0) 编辑
摘要: 创建新目录,cmd进入到新目录,执行如下命令: 1. git svn init svn://10.10.10.10/net/QA_Dept 2. git svn fetch 3. git remote add origin https://git.net.com/AutomationTeam/QA_ 阅读全文
posted @ 2019-09-05 17:49 星拂晓空 阅读(541) 评论(0) 推荐(0) 编辑
摘要: Installing SFTP/SSH Server 1. On Windows 10 version 1803 and newer In Settings app, go to Apps > Apps & features > Manage optional features.Locate “Op 阅读全文
posted @ 2019-09-05 15:29 星拂晓空 阅读(292) 评论(0) 推荐(0) 编辑