自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Ian_安安

DevOps

  • 博客(64)
  • 资源 (1)
  • 收藏
  • 关注

原创 tableau入门视频笔记(一)

本节作为Tableau的入门教程,利用全球超市数据来对Tableau如何进行数据可视化进行简单介绍第一步:导入数据 第二步:将订单拖入画布 第三步:导入另一个数据源文件(.csv) 第四步:对订单ID进行自定义拆分 在订单ID右上角单击选择自定义拆分 第五步:单击工作表进行数据探索 第六步:将目标数据字段拖拽至行/列 我们连接到了数据集。现在,让我们来...

2018-08-08 16:34:05 16502 3

原创 Python Linux系统管理与自动化运维之深入浅出Ansible(一)

Ansible维护模式通常由控制机和被管理机组成。因为Ansible的特性不像其他运维工具那样需要在被监控的目标上安装agent,所以我们的侧重点只需要放在安装了Ansible的服务器上(当然用于实验环境的话可以是一台笔记本,台式机或者仅仅只需要一台虚拟机即可)。Ansible可以通过SSH进行远程链接到对端主机上,然后执行你想要执行的playbook或者指令。所有的远程主机都可以在invento...

2018-07-21 14:01:45 2265

原创 小米手机如何限制不显示通知和乱下载软件

本教程共分为四节实现小米手机不乱下载东西和推送:分别为 删除软件,控制软件的联网,控制软件显示通知和控制软件下载权限一:卸载软件 -->按住这个软件,然后往最上面那个垃圾桶位置,则该软件删除二:限制软件信息通知:需要控制显示的软件:点击 然后把不想要信息提醒的软件全部关掉 (需要一个一个关闭)三:限制软件下载安装的权限设置---->更多设置---->系统...

2018-12-29 22:22:21 15412

原创 25-30日志查询

2018-12-18 10:33:30 208

原创 mysql8学习手册第七部分备份

第七章:BackupsTaking backups using mysqldumpTaking backups using mysqlpumpTaking backups using mydumperTaking backups using flat filesTaking backups using XtraBackupLocking instances for backupBi...

2018-11-21 10:42:40 466

原创 mysql8学习手册第五部分 Transactions 事务以及Binlog日志的使用

第五章:TransactionsPerforming transactionsUsing savepointsIsolation levelsLockingTransactions should also satisfy Atomicity, Consistency, Isolation, and Durability(ACID) properties.事务应该保持原子性、一致性、...

2018-11-21 10:41:20 280

原创 mysql8学习手册第四部分:mysql配置文件的使用和高级配置

第四章:Configuring MysqlUsing config fileUsing global and session variablesUsing parameters with startup scriptConfiguring the parametersChanging the data directorymysql有两种参数:Static(重启生效)和Dynami...

2018-11-21 10:39:35 497

原创 mysql8学习手册第三章mysql高级使用

',‘$.address.line2’,‘兴江街道’);update emp_details setdetails=JSON_INSERT(details,’.phone′,′154077′,′.phone','154077','.phone′,′154077′,′.address.line2’

2018-11-21 10:38:32 388 1

原创 mysql 自定义函数的使用

查看函数功能是否开启:show variables like '%func%'//mysql8 默认为关闭打开函数功能:SET GLOBAL log_bin_trust_function_creators=1;关闭函数功能:SET GLOBAL log_bin_trust_function_creators=1;函数的创建:语法:create function 函数名([参数列表]) r...

2018-11-01 09:33:36 1869

原创 mysql8学习手册第三部分查询和子查询

Selecting data into a file and tableTo save the output into a file, you need the FILE privilege. FILE is a global privilege, which means you cannot restrict it for a particular database. However, y...

2018-10-31 14:21:19 384

原创 mysql8学习手册第二部分用户管理

create userscreate user if not exists ‘anan’@‘localhost’ identified with mysql_native_passwd by ‘Zja1540774503_’ with max_queries_per_hour 500 max_updates_per_hour 100;Granting and revoking access t...

2018-10-30 09:26:38 212

原创 mysql8学习心得

一:安装mysqlrpm安装wget 'https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.3-0.1.rc.el7.x86_64.rpm-bundle.tar'tar xvf mysql-8.0.3-0.1.rc.el7.x86_64.rpm-bundle.tarsudo rpm -i mysql-community-{se...

2018-10-26 17:15:11 341

转载 ansible 下lineinfile详细使用

一、简述 这几天在看了ansible官网,收获蛮多。截取一个lineinfile模块作一个总结。如果批量修改配置文件某一行时,在写playbook时lineinfile避免不了的。根据官网说法:lineinfile - Ensure a particular line is in a file, or replace an existing line using a back-refere...

2018-08-30 11:57:42 2584

原创 人人都是数据分析师:Tableau应用实战(四)高级数据操作

本章主要介绍如何创建分层结构、组、集、参数、计算字段、参考线与参考区间,以及如何灵活运用它们来创建视图。*6.1节和6.2节描述了分层结构和组,两者经常结合使用以实现对数据的上钻和下钻操作;6.3 节描述了集的创建与使用方法;6.4节描述了参数的创建和使用方法;6.5节介绍了如何创建和使 用计算字段,以及表计算、详细级别表达式、百分比这3种函数的使用方法;6.6节介绍了参考线 以及参考区...

2018-08-11 17:07:29 3281

原创 人人都是数据分析师:Tableau应用实战(三)初级可视化分析

初级可视化分析本章将以电力行业数据及常见可视化分析需求为例,介绍11种初级视图的创建用法,分别是:以“2014年各省市售电量明细表”作为数据源的条形图(4.1)、饼图(4.3)、折线图(4.4)、气泡图(4.8)、圆视图(4.9)、标靶图(4.10);以“公司年龄统计表”作为数据源的直方图(4.2);以“2014年上半年综合计划指标明细表”作为数据源的基本表(4.5)、压力图(4.6)、树地图...

2018-08-10 14:42:13 2717 1

原创 人人都是数据分析师:Tableau应用实战(二)数据连接与管理

连接数据源是利用Tableau进行数据分析的第一步,Tableau拥有强大的数据连接能力,支持几乎所有的主流数据源类型。 本节目标:实现多表联接查询和多数据源数据关联,创建、管理和操作数据源。Tableau元数据管理分为三层:数据连接层(Connection)、数据模型层(DataModel)和数据可视化层(VizQL)。Tableau中的数据连接层 数据连接层的数据连接信息包括数据库...

2018-08-09 20:56:21 2741 1

原创 人人都是数据分析师:Tableau应用实战(一)Tableau入门和经典场景应用

第一章:Tableau入门统BI系统架构:数据源,中层是ETL(抽取、转换、装载),上层的数据仓库形成DWD(明细数据层)。Tableau特性: 急速高效\ 简单易用\ 可连接多种数据源,轻松实现数据融合\ 高效接口集成,具有良好可扩展性,提升数据分析能力Tableau产品体系: Tableau Desktop\ Tableau Server\...

2018-08-08 20:51:17 5316

原创 Ansible Cookbooks-Highly-Available Infrastructure with Ansible(一)

chapter 1:Highly-Available Infrastructure with Ansible In the following example, we’ll use Ansible to configure a complex infrastructure on servers provisioned.Varnish acts as a load balancer and...

2018-08-06 15:40:36 195

原创 实现Mysql正式库数据导出并上传到测试机(二)

因为开发需求,需要将几张表的数据每月都导出并上传到测试机,故修改上一份代码,将时间参数输入改为获取上个月的第一天和最后一天。修改后代码如下:#!/usr/bin/env python# -*- coding: utf-8 -*-# @Date : 2018-08-02 10:24:05# @Author : Zhou Jiaan# @Version : $2.0#根据...

2018-08-03 11:56:27 326

原创 实现Mysql正式库数据导出并上传到测试机

今天开发跟我说需要将某几张表的某个时间段的数据导出到测试机上,故写了这个程序实现将执行该脚本导出数据并自动上传到测试机。本脚本分为两个部分:控制远程服务器执行导出脚本和本地获取远程数据并上传到测试机。第一部分:获取远程服务器数据库文件expertdata.py#!/usr/bin/env python# -*- coding: utf-8 -*-# @Date : 2018-...

2018-08-02 17:28:11 769

原创 Ansible -IF/then/when-Conditionals

IF/then/when-Conditionals Ansible uses expressions and built-ins with when ,changed_when , and failed_when so you can describe these things to Ansible with as much precision as possible.Jinja2 allo...

2018-08-01 18:54:26 1245

原创 Ansible安全机制(Anisble Vault-Keeping secrets secret )

It’s better to treat passwords and sensitive data specially, and there are two primary ways to do this:1. Use a separate secret management service,such as Vault⁶⁵by HashiCorp,Keywhiz⁶⁶by Square,or a...

2018-08-01 14:25:50 645

原创 浅谈MySQL:延迟的主从复制(Delayed Replication)

myslq使用 MASTER_DELAY 可以设置mysql主从复制延迟语法:CHANGE MASTER TO MASTER_DELAY = 30; #备注:设置备节点延迟的时间,单位秒。具体使用:root@localhost:mysql>stop slave;Query OK, 0 rows affected (0.21 sec)root@localhost:mysql&...

2018-08-01 12:01:26 935

原创 [centos]安装软件:/lib/ld-linux.so.2: bad ELF interpreter解决方案

问题产生原因:本人在安装yhbf过程中遇到系统显示-bash: /root/bin/yhbf: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory如图: 本人系统版本:[root@db1 bin]# uname -m &&uname -rx86_643.10.0-327.el7...

2018-08-01 10:24:21 1007

原创 check_mysql_slave:MySQL is running but PID file could not be found

看到一条数据库告警:check_mysql_slave NPRE:Command timed out after 60 seconds check_mysql_slave 登入数据库系统查看数据库状态显示:MySQL is running but PID file could not be foundservice mysql status结果:MySQL is running b...

2018-07-26 09:34:49 416

原创 知识补充之Haproxy介绍与集群部署

下一节我们讲述 lamp_haproxy案例,故这一节我们先补充部分关于haproxy的知识。如果各位对这一节比较了解,可以初略的回顾一遍或者直接跳过。本节课共分为以下几个板块: 1.集群概述 2.集群实现方法及调度算法 3-集群文件存储及总结 4-Haproxy简介 5-Haproxy自动化部署 6-Haproxy配置概述 7-Haproxy日志配...

2018-07-25 09:27:56 157

原创 Ansible常用plugin汇总

apt Manages apt-packages authorized_key Adds or removes an SS...

2018-07-24 18:25:47 601

原创 Ansible模板实验案例分析之lamp_simple

本节通过对官方提供的Lamp_simle模板项目的分析简要分析一个项目的构架以及如何构建属于自己的playbook

2018-07-24 16:42:00 370

原创 利用ansible部署mongodb

利用ansible部署mongodb---- hosts: db_server become: yes become_method: sudo vars: mengodb_datadir_prefix: /data mongod_port: 27018 tasks: - name: Create the mongodb user ...

2018-07-24 14:29:58 1758

原创 Python Linux系统管理与自动化运维之深入浅出Ansible(四)

本节结合前面所学的ansible命令和playbook语法做一个小的练习,实现在一台服务器上部署nginx.playbook如下: 剧本如下:安装nginx 添加nginx用户 考本配置文件 添加index.html文件 ansible-playbook depoly_nginx.ymldepoly_nginx.yml---- hosts: nginx_server ...

2018-07-24 10:54:34 409

原创 python脚本实现判断yaml脚本格式是否正确

脚本实现输入yaml格式的文件名 然后如果输入格式正确则返回该yaml格式的列表。 #!/usr/bin/python2.7 # -*- coding: utf-8 -*-# @Date : 2018-07-21 23:23:56# @Author : Zhou Jiaan# @Version : V1.0import osimport yamlimport sys...

2018-07-23 14:41:15 3717 1

转载 Ansible11:变量详解

一、在Inventory中定义变量详见《Ansible2:主机清单》二、在Playbook中定义变量1、通过vars关键字定义:vars: http_port: 80server_name: localhostcert_file: /etc/nginx/ssl/nginx.crtkey_file: /etc/nginx/ssh/nginx.keyconf_fil...

2018-07-23 10:40:17 251

原创 playbook之变量的使用

在平时运维工作中有时候需要根据不同的远程节点或者针对不同的IP的系统做不同的配置部署.Ansible可以根据不同的IP地址来对各个节点上的配置文件做不同的处理,这里就需要用到变量,变量可以定义在不同的地方。本节分为变量的定义和变量的使用两个部分变量定义:1.定义在hosts主机中:如[http_server:vars]http_port=80maxRequestsPerChild=8...

2018-07-23 10:36:27 679

原创 Python Linux系统管理与自动化运维之深入浅出Ansible(三)

利用Playbook的使用并利用playbook实现Nginx与MongoDB的部署。playbook1.yml---- import_playbook: playbook.yml- hosts: db_server tasks: - name: install mongodb yum: name=mongodb-server state=present- host...

2018-07-22 00:46:10 698

原创 Python Linux系统管理与自动化运维之深入浅出Ansible(二)

Ansible常见模块使用和案例实现 本节主要讲解Ansible 命令的使用 目前Ansible官方提供的模块已经超过950个,这里只列举其中常用的12个模块,学会了这十二个模块对Ansible的基本使用已经有了一个大概的了解,然后我们再通过Ansible帮助命令去查询我们需要的模块使用方法。1.ping 网络测试命令ansible test -m ping2.command/she...

2018-07-21 15:54:17 285

原创 mysql学习一

目录: 1. 安装mysql 1. mysql忘记密码和更换密码 1. SQL类别 1. DDL基础命令 1. DML基础命令安装mysql略mysql忘记密码和更换密码 1. 关闭mysqlsudo service mysql stop编辑mysql配置文件cd /etc/mysql/mysql.conf.d/v...

2018-07-20 11:22:51 183

原创 ansible学习一

我们这使用四台主机进行编辑和介绍: 10.1.11.34 master\ 10.1.11.35 web1\ 10.1.11.36 web2\ 10.1.11.37 dbserver学习资源: 马哥教育ansible内部视频教程 https://pan.baidu.com/s/1c2NG4MW 密码: kfdq学习马哥教育ansible内部视频教程学习笔...

2018-07-20 11:21:10 1055

原创 Python Cookbook学习记录(一)

第一章:数据结构和算法问题一:n个元素组成的元组或序列进行分解方法一:利用n个元素赋值实现拆分 如:p=(3,4,5,6)a,b,c,d=pprint(a,b,c,d)方法二:对列表或者元组进行遍历p=(3,4,5,6)for i in range(len(p)): print(p[i],end=''+" ")列表中包含元组或者列表类似 进一步细分...

2018-07-20 11:20:08 203

原创 廖雪峰python教程学习之习题解析

第一天条件判断练习测试# 小明身高1.75,体重80.5kg。请根据BMI公式(体重除以身高的平方)帮小明计算他的BMI指数,并根据BMI指数:# 低于18.5:过轻# 18.5-25:正常# 25-28:过重# 28-32:肥胖# 高于32:严重肥胖# 用if-elif判断并打印结果:def exp_if(): height = 1.75 weig...

2018-07-20 11:17:42 7596 1

原创 hive手册之分区使用

介绍hive如何添加分区、删除分区、自定义分区以及分区插入数据如何自定义分区:create table test(name string,sex int) partitions (birth string, age string);create table yxtest(name string,sex int)partitioned by (month_id string...

2018-07-20 11:15:19 170

mysql8学习手册

MySQL 8 Cookbook: Over 150 recipes for high-performance database querying and administration Design and administer enterprise-grade MySQL 8 solutions MySQL is one of the most popular and widely used relational databases in the World today. The recently released MySQL 8 version promises to be better and more efficient than ever before. This book contains everything you need to know to be the go-to person in your organization when it comes to MySQL. Starting with a quick installation and configuration of your MySQL instance, the b ook quickly jumps into the querying aspects of MySQL. It shows you the newest improvements in MySQL 8 and gives you hands-on experience in managing high-transaction and real-time datasets. If you’ve already worked with MySQL before and are looking to migrate your application to MySQL 8, this book will also show you how to do that. The book also contains recipes on efficient MySQL administration, with tips on effective user management, data recovery, security, database monitoring, performance tuning, troubleshooting, and more. With quick solutions to common and not-so-common problems you might encounter while working with MySQL 8, the book contains practical tips and tricks to give you the edge over others in designing, developing, and administering your database effectively. What You Will Learn Install and configure your MySQL 8 instance without any hassle Get to grips with new features of MySQL 8 like CTE, Window functions and many more Perform backup tasks, recover data and set up various replication topologies for your database Maximize performance by using new features of MySQL 8 like descending indexes, controlling query optimizer and resource groups Learn how to use general table space to suit the SaaS or multi-tenant applications Analyze slow queries using performance schema, sys schema and third party tools Manage and monitor your MySQL instance and implement efficient

2018-10-26

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除