上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: 环境:zabbix server centos 7 1611最小化安装 172.16.103.2 zabbix client Centos 7 1611 最小化安装 172.16.103.3 1,配置光盘yum源 创建挂载的目录,挂载光驱,备份原有repo mkdir -p /media/cdrom 阅读全文
posted @ 2019-05-16 15:11 Withfeel 阅读(731) 评论(0) 推荐(0) 编辑
摘要: Notepad++ 删除指定字符开头的行的正则表达式 1.删除A之后的所有字符用:A.*$ 2.删除A之前的所有字符用:^([^s]*)A ####如果是其他字符就把A替换为其他字符 注释:如何是特殊字符注意转义 删除注释行,就是#.*$ 删除空行是编辑>行操作>移除空行 阅读全文
posted @ 2019-04-30 16:13 Withfeel 阅读(1444) 评论(0) 推荐(0) 编辑
摘要: 要想知道每个数据库的大小的话,步骤如下: 1、进入information_schema 数据库(存放了其他的数据库的信息) use information_schema; 2、查询所有数据的大小: select concat(round(sum(data_length/1024/1024),2),' 阅读全文
posted @ 2019-04-30 16:12 Withfeel 阅读(10661) 评论(0) 推荐(0) 编辑
摘要: window下 1.导出整个数据库 mysqldump -u 用户名 -p 数据库名 > 导出的文件名 mysqldump -u dbuser -p dbname > dbname.sql 2.导出一个表 mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名 mysqldump - 阅读全文
posted @ 2019-04-30 16:12 Withfeel 阅读(37987) 评论(2) 推荐(0) 编辑
摘要: 参考文章: https://blog.csdn.net/buyaore_wo/article/details/84313467 安装版本: Subversion Edge 5.2.3 (Linux 64-bit) 从官网上找到linux版本 https://www.collab.net/downlo 阅读全文
posted @ 2019-04-24 14:28 Withfeel 阅读(1400) 评论(0) 推荐(0) 编辑
摘要: 动态查看时间的命令 watch -n 1 "date +%T" ntp命令 查看时间同步源: $ chronyc sources -v 查看时间同步源状态: $ chronyc sourcestats -v 设置硬件时间 硬件时间默认为UTC: $ timedatectl set-local-rtc 阅读全文
posted @ 2019-04-19 14:36 Withfeel 阅读(5321) 评论(0) 推荐(2) 编辑
摘要: timedatectl set-ntp no //关闭时间动态更新timedatectl set-time "YYYY-MM-DD HH:MM:SS" //设置时间和日期timedatectl set-ntp yes //开启时间动态更新 date //查看当前时间和日期 阅读全文
posted @ 2019-04-17 10:02 Withfeel 阅读(9216) 评论(0) 推荐(0) 编辑
摘要: 参考文章 https://blog.csdn.net/yyTomson/article/details/85783753 https://www.cnblogs.com/zy-303/p/10273167.html 1,环境两台centos7主机IP地址为:172.16.103.12和172.16. 阅读全文
posted @ 2019-04-08 19:11 Withfeel 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 脚本内容: #!/bin/bash # ens=$(cat /proc/net/dev | awk '{if($2>0 && NR > 2) print substr($1, 0, index($1, ":") - 1)}' | grep "^e[a-z,0-9].*") ensurl=$"/etc 阅读全文
posted @ 2019-04-08 11:03 Withfeel 阅读(374) 评论(0) 推荐(0) 编辑
摘要: #脚本开始 #!/bin/bash cd /etc/yum.repos.d/ tar -zcvf yum.bak.tar.gz CentOS-* rm -rf CentOS* touch /etc/yum.repos.d/a.repo cat>/etc/yum.repos.d/a.repo <<EO 阅读全文
posted @ 2019-04-08 11:03 Withfeel 阅读(976) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页