摘要: #! /bin/bash port=22 for i in `cat $1` do ping -c 2 $i >/dev/null 2>&1 if [ $? -eq 0 ];then echo -e "\033[32m${i} is up\033[0m" echo $i >> ip_up.txt s 阅读全文
posted @ 2020-07-02 19:52 象飞田 阅读(767) 评论(0) 推荐(0) 编辑
摘要: import xlrd import os import json data = xlrd.open_workbook('/Users/Desktop/test.xlsx') table = data.sheet_by_name(u'Sheet1') #i= table.row_values(2)[ 阅读全文
posted @ 2020-07-02 19:50 象飞田 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 入门阅读材料: 1. microservices(翻译) 原文 对于微服务而言,有六个基本必须实现的1.进程通讯2.服务注册与发现3.负债均衡4.配置中心5.熔断器6.网关路由 2. service mesh的历史和市场格局 3. Istio介绍安装和配置 servicemesher社区 4. sp 阅读全文
posted @ 2020-06-29 10:42 象飞田 阅读(639) 评论(0) 推荐(0) 编辑
摘要: nginx 笔记 (1) 安装依赖 yum install gcc gcc-c++ autoconf automake -y yum install zlib zlib-devel openssl openssl-devel pcre pcre-devel -y yum install wget v 阅读全文
posted @ 2020-06-28 09:56 象飞田 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1. nohup命令 nohup的用法简单,配合 & 使用。 nohup <command> [argument…] & 比如: nohup wget https://downloads.apache.org/hadoop/common/hadoop-2.9.2/hadoop-2.9.2.tar.g 阅读全文
posted @ 2020-06-24 14:11 象飞田 阅读(491) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-06-05 18:48 象飞田 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-06-05 17:56 象飞田 阅读(9) 评论(1) 推荐(0) 编辑
摘要: 升级openssh版本至8.x操作步骤 前提条件: 自行配置系统网络yum源。 操作步骤: 说明:经验证操作系统类型为centos 7.4 、redhat 6.5、redhat 6.8、redhat 6.9、redhat 7.4、redhat 7.5 的都可以顺利升级至openssh 7.9; Re 阅读全文
posted @ 2020-06-05 17:50 象飞田 阅读(592) 评论(0) 推荐(0) 编辑
摘要: 在shell中经常看到下面这样的cat和eof的搭配使用的例子: cat > workers.txt << EOF {{ work01_hostname }} {{ work01_ip }} {{ work01_hostname }} {{ work01_ip }} EOF cat > genera 阅读全文
posted @ 2020-05-21 14:08 象飞田 阅读(2458) 评论(0) 推荐(0) 编辑
摘要: 常量与运算符 1. 常量的定义 - 常量的值在编译时就已经确定(如果是运行时才确定的值,赋值给常量的话编译会报错) - 常量的定义格式与变量基本相同 - 等号右侧必须是常量或者常量表达式 - 常量表达式中的函数必须是内置函数 const a int = 1 const b = 'A' const ( 阅读全文
posted @ 2020-05-20 14:01 象飞田 阅读(394) 评论(0) 推荐(0) 编辑