上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页
摘要: ```查看版本svnversion --version备份语法:svnadmin hotcopy 项目路径 备份路径还原语法:svnadmin hotcopy 备份路径 项目路径备份svnadmin hotcopy /path/to/repository /path/to/repository-backup.date热备份(没试过)svnadmin hotcopy /path/to/re... 阅读全文
posted @ 2020-04-03 15:27 kylingx 阅读(187) 评论(0) 推荐(0) 编辑
摘要: ```1.切换到root用户sudo su -2.安装NFS服务器所需要的包apt-get install -y nfs-kernel-server3.目录mkdir /data/nfssharechmod 777 /data/nfsshare4.exports/data/nfsshare *(insecure,rw,sync,no_root_squash,no_subtree_check)5.重... 阅读全文
posted @ 2020-04-02 22:22 kylingx 阅读(85) 评论(0) 推荐(0) 编辑
摘要: ```命令代码后边加上/path 2>&1* * * * * /data/a.sh >> /data/a.log 2>&1``` 阅读全文
posted @ 2020-04-02 22:18 kylingx 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: ``` 新增 iptables -A INPUT -s 172.28.11.0/24 -d 0.0.0.0/0 -j ACCEPT 保存(非永久开机保存) iptables-save > 123.bak iptables-restore < 123.bak 永久保存可使用 service iptables save service iptables restart 或者使用脚本 ``` 阅读全文
posted @ 2020-04-02 22:15 kylingx 阅读(139) 评论(0) 推荐(0) 编辑
摘要: ```备份指定库exammysqldump --set-gtid-purged=off -uroot -p'test' exam | gzip > exam.sql.gz gunzip exam.sql.gz 还原指定库mysql>source /data/exam.sql备份全部mysqldump --set-gtid-purged=off -uroot -p'test' -A | gzip >... 阅读全文
posted @ 2020-04-02 10:07 kylingx 阅读(669) 评论(0) 推荐(0) 编辑
摘要: ``` 用来解决mysql库、表之间同步的问题,可使用脚本定时同步 下载路径 https://www.percona.com/downloads/percona-toolkit/LATEST/ 文档 https://www.percona.com/doc/percona-toolkit/LATEST/pt-table-sync.html yum install -y *.gz 使用方法(任意两库之 阅读全文
posted @ 2020-04-01 17:44 kylingx 阅读(351) 评论(0) 推荐(0) 编辑
摘要: ``` 解压 gzip -d daily_exam_2020-04-01_12h04m_Wednesday.sql.gz mysqldump还原 mysql -uroot -p'123456' exam < daily_exam_2020-04-01_12h04m_Wednesday.sql 提示(主要原因是之前的数据库里面配置了主从,再导出的时候一起导出来了。所以导入时会出现这个问题。) @@G 阅读全文
posted @ 2020-04-01 13:15 kylingx 阅读(134) 评论(0) 推荐(0) 编辑
摘要: ``` 添加静态路由 ip route add 172.16.0.0/16 via 192.168.23.139 dev ens36 永久路由 vim /etc/sysconfig/network-scripts/route-网卡名 172.16.0.0/16 via 192.168.23.139 dev ens36 重启测试生效 ``` 阅读全文
posted @ 2020-04-01 11:28 kylingx 阅读(2494) 评论(0) 推荐(0) 编辑
摘要: ``` 创建库 create database zabbix character set utf8 collate utf8_bin; 创建用户 create user 'slave'@'IP' identified by 'passwd'; 直接授权及建用户 grant all privilege 阅读全文
posted @ 2020-03-30 22:14 kylingx 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ```主库:创建复制用户create user 'slave'@'IP' identified by 'password';grant replication slave on *.* to 'slave'@'IP';flush privileges;select user,host from mysql.user;show grants for 'slave'@'IP';show master ... 阅读全文
posted @ 2020-03-30 22:09 kylingx 阅读(95) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页