摘要:
rsync -auvrtzopgP --progress --delete --exclude-from=exclude.list SRC DST \\保留原文件属性并详细输出 删除那些DST中SRC没有的文件 阅读全文
posted @ 2017-05-19 17:42
三木燕
阅读(332)
评论(0)
推荐(0)
摘要:
touch README git add README git commit -m 'first commit' git push origin master 阅读全文
posted @ 2017-05-19 17:42
三木燕
阅读(118)
评论(0)
推荐(0)
摘要:
iptables service iptables save \\保存 iptables -F \\清空所有规则 iptables -F -t nat \\清空nat表 iptables -t nat -L -n \\查看nat表 iptables -L -n --line-number \\查看防火墙规则 iptables -t nat -A POSTROUTI... 阅读全文
posted @ 2017-05-19 17:41
三木燕
阅读(384)
评论(0)
推荐(0)
摘要:
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'your_root_password' WITH GRANT OPTION; \\开启root远程登录 mysql> CREATE DATABASE DBNAME; \\创建数据库 mysql> GRANT ALL PRIVILEGES ON DBNAME.* TO... 阅读全文
posted @ 2017-05-19 17:40
三木燕
阅读(854)
评论(0)
推荐(0)
摘要:
直接修改/etc/resolv.conf 重启后可能会清空 阅读全文
posted @ 2017-05-19 17:37
三木燕
阅读(227)
评论(0)
推荐(0)
摘要:
centos7 图形设置 配置文件设置 centos7修改网卡命名 安装系统后 安装系统前 点击 Tab,打开kernel启动选项 阅读全文
posted @ 2017-05-19 17:36
三木燕
阅读(264)
评论(0)
推荐(0)
摘要:
常用命令 阅读全文
posted @ 2017-05-19 17:33
三木燕
阅读(366)
评论(0)
推荐(0)
摘要:
#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin clear printf " # Name: Downtown_Shell_Deploy_Script # # Purpose:Deploy tar.gz to the host # # Notes: # 1 Uplo... 阅读全文
posted @ 2017-05-19 17:22
三木燕
阅读(306)
评论(0)
推荐(0)
摘要:
#!/bin/bash #zhangsen #lovexlzs@qq.com if [[ "$(whoami)" != "root" ]]; then echo "please run this script as root ." >&2 exit 1 fi echo -e "\033[31m 这个 阅读全文
posted @ 2017-05-19 17:21
三木燕
阅读(1632)
评论(0)
推荐(0)
摘要:
不知道是什么原因直接用Python脚本zabbix无法执行脚本,需要一个shell来启动 上面这脚本有个问题不能发中文消息,下面这个可以发中文 阅读全文
posted @ 2017-05-19 17:16
三木燕
阅读(1009)
评论(0)
推荐(0)
摘要:
构建shell 阅读全文
posted @ 2017-05-19 17:13
三木燕
阅读(708)
评论(1)
推荐(0)
摘要:
etcd web管理 https://nikfoundas.github.io/etcd-viewer/ node1 node2 node3 etcdctl命令 etcd进程关闭 阅读全文
posted @ 2017-05-19 17:11
三木燕
阅读(358)
评论(0)
推荐(0)
摘要:
安装 常用命令 rsync实时同步脚本 详细参数 阅读全文
posted @ 2017-05-19 17:10
三木燕
阅读(243)
评论(0)
推荐(0)
摘要:
安装 配置文件详解 secrets file:密码文件 passwd不要超过8个字符。文件的权限一定要是600,否则客户端将不能连接服务器。 示例 客户端命令 常用命令 参数详解 阅读全文
posted @ 2017-05-19 17:09
三木燕
阅读(783)
评论(0)
推荐(0)
摘要:
环境准备 编译安装 配置服务 环境变量 阅读全文
posted @ 2017-05-19 17:08
三木燕
阅读(12185)
评论(1)
推荐(1)
摘要:
维护命令 数据库 表 用户管理 信息命令 阅读全文
posted @ 2017-05-19 17:08
三木燕
阅读(243)
评论(0)
推荐(0)
摘要:
完整文件 阅读全文
posted @ 2017-05-19 17:07
三木燕
阅读(441)
评论(0)
推荐(0)
摘要:
创建虚拟机 快速启动虚拟机 桥接网络 快照 新建nat网络 virsh 常用命令 阅读全文
posted @ 2017-05-19 17:06
三木燕
阅读(278)
评论(0)
推荐(0)
摘要:
mysql 为主主模式参考 https://my.oschina.net/sanmuyan/blog/877373 192.168.100.129 mysql 主节点/keepalived 主节点 192.168.100.130 mysql 备节点/keepalived 备节点 192.168.10 阅读全文
posted @ 2017-05-19 17:05
三木燕
阅读(228)
评论(0)
推荐(0)
摘要:
#!/bin/bash mysqladmin -uroot -p'root' extended-status -i1|awk 'BEGIN{local_switch=0;print "QPS Commit Rollback TPS Threads_con Threads_run \n-------------------------------------------------... 阅读全文
posted @ 2017-05-19 17:05
三木燕
阅读(943)
评论(0)
推荐(0)