# 练习题3 # 编写函数, 实现计算器中加减乘除功能 # 例如:输入: 2+33 def computer(a, b, c): if b == "+": print(int(a) + int(c)) elif b == "-": print(int(a) - int(c)) elif b == " ...
分类:
其他好文 时间:
2021-01-11 10:39:55
阅读次数:
0
1、//配置分组主机 vim /etc/ansible/hosts 内容:# 方法一 主机+端口+密码 [webservers] 192.168.16.1 ansible_ssh_port=22 ansible_ssh_user=root ansible_ssh_pass="123456" # 方法 ...
分类:
其他好文 时间:
2021-01-08 11:23:03
阅读次数:
0
一、kiali 组件分析 使用如下命令查看 kiali pod 详情: kubectl edit pod -n istio-system $(kubectl get pods -n istio-system | grep -i kiali | awk '{print $1}') kiali pod ...
分类:
其他好文 时间:
2021-01-08 10:42:23
阅读次数:
0
一、mysql5.7源码安装1.清除卸载原mysql[root@192 ~]# rpm -qa | grep mariadbmariadb-libs-5.5.60-1.el7_5.x86_64[root@192 ~]# yum -y remove mari*或者用rpm卸载[root@192 ~]# ...
分类:
数据库 时间:
2021-01-08 10:29:39
阅读次数:
0
* 如果是非Ubuntu系统,下面的apt-get命令要换成yum命令。apt-cache search all | grep -> yum list installed | grepapt-get purge -y -> yum remove -y其中的参数-y是过程中所有提示都自动选yes的作用 ...
分类:
其他好文 时间:
2021-01-07 12:30:42
阅读次数:
0
Linux 实用指令之查看端口开启情况 netstat -ntlp 查看端口使用情况! netstat -ntlp | grep 80 查看具体的端口是否使用! # netstat -ntlp Active Internet connections (only servers) Proto Recv ...
分类:
系统相关 时间:
2021-01-07 12:28:02
阅读次数:
0
sed命令 语法: sed [options] '{command}[flags]' [filename] {}是必须有,[]可选 options: -r 使用扩展的正则表达式 -n 只打印缓存中的内容,不打印文本内容 -e 执行多个命令 -f 执行文件中的命令 -i 修改原文件 -i.xxxx 修 ...
分类:
系统相关 时间:
2021-01-07 12:17:11
阅读次数:
0
1、首先安装一下ansible yum install ansible 2、修改一下ansible的参数以防ssh过去的时候需要首次判断yes 或者no sed -i 's/#host_key_checking = False/host_key_checking = False/g' /etc/an ...
分类:
其他好文 时间:
2021-01-07 12:10:47
阅读次数:
0
安装部署主控节点服务 -- etcd 部署master节点服务 部署etcd集群 集群规划 HDss7-12.host.com ectc lead 192.168.154.12 HDss7-21.host.com ectc follow 192.168.154.21 HDss7-22.host.co ...
分类:
其他好文 时间:
2021-01-07 11:46:58
阅读次数:
0
- name: 以轮询的方式等待服务同步完成 shell: "systemctl status etcd.service|grep Active" register: etcd_status until: '"running" in etcd_status.stdout' retries: 8 de ...
分类:
其他好文 时间:
2021-01-07 11:40:27
阅读次数:
0