码迷,mamicode.com
首页 > 数据库 > 详细

快速准备(复制替换)一套新测试环境,CentOS7 MySQL相关配置

时间:2018-08-22 12:00:58      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:efault   服务配置   centos7   完成   file   快速   help   virsh   job   

拿到一个新环境,需要找相关配置,我有一个办法,相对能比较快速地复制一套环境出来。

修改机器配置:

virsh 相关几条命令,已完成,后续我再整理补充...

 

修改服务配置:

cd /mnt/app/xxjob/WEB-INF/classes
sed -i s/192.168.0.202/192.168.0.212/g generator.properties
sed -i s/192.168.0.202/192.168.0.212/g application.yml
sed -i s/192.168.0.202/192.168.0.212/g jdbc.properties
sed -i s/192.168.0.202/192.168.0.212/g application.properties
sed -i s/192.168.0.202/192.168.0.212/g  xxl-job-admin.properties
cat /mnt/app/xxjob/WEB-INF/classes/* | grep 192.168.0.202

 

修改MySQ配置:

[root@localhost etc]# which mysql
/usr/bin/mysql
[root@localhost etc]# /usr/bin/mysql --verbose --help | grep -A 1 Default options
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf 

 

其他稍后待续...

 

快速准备(复制替换)一套新测试环境,CentOS7 MySQL相关配置

标签:efault   服务配置   centos7   完成   file   快速   help   virsh   job   

原文地址:https://www.cnblogs.com/haochuang/p/9516642.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!