摘要: # !/usr/bin/python3 # -*- coding: utf-8 -*- # Author: 刘小懒 import pymysql OPTION = { "check_sql_data": "0", "create_tables": "1", "add_sql_data": "2", 阅读全文
posted @ 2020-07-02 16:44 刘小懒 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1安装mariadb数据库 1. 配置阿里云源 参考链接: https://developer.aliyun.com/mirror 2. 使用阿里云源安装mariadb dnf -y install mariadb-server mariadb-client 1.1 .1 使用systemctl进行 阅读全文
posted @ 2020-07-02 11:55 刘小懒 阅读(1080) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- # Author: 刘小懒 # example:python dingding.py 参数1 参数2 参数3 import requests import json import sys import os 阅读全文
posted @ 2020-06-18 13:54 刘小懒 阅读(2138) 评论(0) 推荐(0) 编辑
摘要: 系统:CentOS Linux release 8.1.1911 (Core) docker: Docker version 19.03.8, build afacb8b docker-compose: 1.23 1. 安装docker 安装以下依赖包 yum install -y yum-util 阅读全文
posted @ 2020-06-18 13:49 刘小懒 阅读(3115) 评论(0) 推荐(0) 编辑
摘要: 系统:CentOS Linux release 8.1.1911 配置主机名 [root@iZwz9e3t4tj14jzewdtvj8Z ~]# hostnamectl set-hostname lan [root@iZwz9e3t4tj14jzewdtvj8Z ~]# cat /etc/hosts 阅读全文
posted @ 2020-06-18 10:57 刘小懒 阅读(813) 评论(0) 推荐(1) 编辑
摘要: 这里是以163邮件为例 ​```python #! /usr/bin/env python # coding=utf-8 """ example: python3 send_mail.py """ from email.mime.text import MIMEText from email.hea 阅读全文
posted @ 2020-06-18 10:46 刘小懒 阅读(1282) 评论(0) 推荐(0) 编辑
摘要: mongodb数据迁移 使用的工具: mongodump 备份 mongorestore 恢复 # 10.1.1.1是需要迁移数据的mongo主机 # 10.1.1.2是一台全新的mongo主机 # 在10.1.1.1上操作 # 全库备份 mongodump -h 10.1.1.1:27017 -u 阅读全文
posted @ 2020-06-18 10:31 刘小懒 阅读(313) 评论(0) 推荐(0) 编辑
摘要: Dockerfile详解 环境介绍 指令介绍 FROM MAINTAINER LABEL ADD COPY EXPOSE ENV 在Dockerfile中使用变量的方式 RUN CMD RUN&&CMD ENTRYPOINT VOLUME USER WORKDIR ARG ONBUILD STOPS 阅读全文
posted @ 2020-06-18 10:28 刘小懒 阅读(1076) 评论(0) 推荐(1) 编辑
摘要: 关于docker-compose的安装这里就不做介绍了,可以看我之前的文档 进入到你准备存放docker-compose文件的目录 mkdir -p mkdir -p ./zbx_env/etc/zabbix_server 将zabbix_server.conf的配置文件放在./zbx_env/et 阅读全文
posted @ 2020-06-18 10:00 刘小懒 阅读(1404) 评论(0) 推荐(0) 编辑
摘要: 1. 系统环境 server: CentOS Linux release 8.1.1911 (Core) ip: 192.168.0.113 project: CentOS Linux release 8.1.1911 (Core) ip: 192.168.0.115 关闭Selinux vim / 阅读全文
posted @ 2020-06-18 09:51 刘小懒 阅读(273) 评论(0) 推荐(0) 编辑