摘要: 一、 归档流程: 1. 导出需要的数据 2. 创建临时表table_tmp 3. 导入数据到临时表 4. 修改原始表名为table_bak 5. 修改临时表为原始表名 二、归档方式对比 1. select into outfile load data infile 导入导出的方式 SELECT * 阅读全文
posted @ 2019-05-22 15:51 烟花❤易冷 阅读(741) 评论(0) 推荐(0)
摘要: 从一台服务器迁移至其他服务器,如何选择最短的停服时间方案 方案一、凌晨3点的全备份+停服后一天的大概一天的增备 1. 拷贝前一天的全备份至新的服务器 rsync -auzrP /Data/dbbak/db/2019-04-23/2019-04-23_03-10-11 root@172.16.1.80 阅读全文
posted @ 2019-05-22 14:52 烟花❤易冷 阅读(936) 评论(0) 推荐(0)
摘要: 1. 系统安装 ubuntu 18.04 英文版,创建个人用户 2. 初始系统 a.修改ip shell vim /etc/network/interfaces auto ens33 iface ens33 inet static address 192.168.1.10 netmask 255.2 阅读全文
posted @ 2019-04-19 00:18 烟花❤易冷 阅读(446) 评论(0) 推荐(0)
摘要: named主 1. bind服务安装配置 yum -y install bind*.x86_64 配置文件: /etc/named.conf /etc/named.rfc1912.zones /etc/rndc.key /etc/named.conf /etc/named.rfc1912.zones 阅读全文
posted @ 2019-01-17 22:01 烟花❤易冷 阅读(543) 评论(0) 推荐(0)
摘要: 一、 下载依赖包 1. apr源码包 http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.5.2.tar.gz 2. apr-util源码包 http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr 阅读全文
posted @ 2018-11-16 16:33 烟花❤易冷 阅读(230) 评论(0) 推荐(0)
摘要: 端口状态 阅读全文
posted @ 2018-05-29 17:04 烟花❤易冷 阅读(105) 评论(0) 推荐(0)
摘要: 进程状态 阅读全文
posted @ 2018-05-29 17:03 烟花❤易冷 阅读(92) 评论(0) 推荐(0)
摘要: top 阅读全文
posted @ 2018-05-29 17:02 烟花❤易冷 阅读(101) 评论(0) 推荐(0)
摘要: 1. 安装环境依赖组件 yum install curl policycoreutils openssh-server openssh-clients systemctl enable sshd systemctl restart sshd yum install postfix yum insta 阅读全文
posted @ 2018-04-12 23:54 烟花❤易冷 阅读(284) 评论(0) 推荐(0)
摘要: #!/bin/bash 阅读全文
posted @ 2018-04-02 19:05 烟花❤易冷 阅读(22) 评论(0) 推荐(0)