快速準備(復制替換)一套新測試環境,CentOS7 MySQL相關配置
阿新 • • 發佈:2018-08-22
ive 補充 nbsp host ner clas root read admin
拿到一個新環境,需要找相關配置,我有一個辦法,相對能比較快速地復制一套環境出來。
修改機器配置:
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 filesin the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf
其他稍後待續...
快速準備(復制替換)一套新測試環境,CentOS7 MySQL相關配置