Life is but a dream.

大栗出奇迹

自律

摘要: 1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 使用while循环输入1 2 3 4 5 6 8 9 10 5 6 count = 1 7 8 while count < 11: 9 if count == 7: 10 print(" 阅读全文
posted @ 2021-09-16 17:43 大栗出奇迹 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 输出1-100内所有的奇数 5 6 count = 1 7 8 while count < 101: 9 tmp = count % 2 10 if tmp == 0: 11 pass 阅读全文
posted @ 2021-09-16 17:42 大栗出奇迹 阅读(2864) 评论(0) 推荐(0) 编辑
摘要: 1 #! /usr/bin/env python3 2 # -*- coding:utf-8 -*- 3 4 # 输出1-100内所有的偶数 5 6 count = 1 7 8 while count < 101: 9 tmp = count % 2 10 if tmp == 1: 11 pass 阅读全文
posted @ 2021-09-16 17:41 大栗出奇迹 阅读(5838) 评论(0) 推荐(0) 编辑
摘要: dnsmasq原理 : dnsmasq提供DNS缓存和DHCP服务、Tftp服务功能。 作为域名解析服务器,dnsmasq可以通过缓存DNS请求来提供对访问过的网址的的连接速度; 作为DHCP服务器,dnsmasq可以用于为局域网电脑分配内网IP地址和提供路由; DNS和DHCP两个功能可以同时或分 阅读全文
posted @ 2020-03-30 15:29 大栗出奇迹 阅读(1880) 评论(0) 推荐(0) 编辑
摘要: grafana安装 # 直接使用官方源安装,比较慢 [root@zabbix ~]# vim /etc/yum.repos.d/grafana.repo [grafana] name=grafana baseurl=https://packages.grafana.com/oss/rpm repo_ 阅读全文
posted @ 2020-01-15 17:15 大栗出奇迹 阅读(1304) 评论(0) 推荐(0) 编辑
摘要: 安装 配置安装源 1 rpm --import https://repo.saltstack.com/yum/redhat/7/x86_64/latest/SALTSTACK-GPG-KEY.pub 2 cd /etc/yum.repos.d/ 3 4 5 [root@node1 yum.repos 阅读全文
posted @ 2020-01-14 15:21 大栗出奇迹 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 安装minicom sudo apt-get install minicom 进行console线和电脑、交换机的链接(USB)查看对应的端口 ll /dev/ttyUSB* crw-rw 1 root dialout 188, 0 9月 17 09:52 /dev/ttyUSB0 更改配置 sud 阅读全文
posted @ 2018-09-17 11:39 大栗出奇迹 阅读(683) 评论(0) 推荐(0) 编辑
摘要: 系统环境 Centos 7,全部按照Centos7最小化安装 所需软件包 存放在我的云盘中 配置开发环境 同步时间 把监控系统里的所有机器都同步一次网络时间(非常重要) 关闭selinux 上传相关软件包 安装邮件服务 因为邮件报警服务需要安装mail功能 监控主机安装 安装nagios所需要的运行 阅读全文
posted @ 2017-03-14 16:18 大栗出奇迹 阅读(521) 评论(0) 推荐(0) 编辑