快速准备(复制替换)一套新测试环境,CentOS7 MySQL相关配置
2018-08-22 11:33
986 查看
拿到一个新环境,需要找相关配置,我有一个办法,相对能比较快速地复制一套环境出来。
修改机器配置:
virsh 相关几条命令,已完成,后续我再整理补充...
虚拟化相关,参考:https://www.cnblogs.com/haochuang/p/9540812.html
修改服务配置:
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
修改MySQL配置:
[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
其他稍后待续...
相关文章推荐
- 安装MySQL先复制1. Linux (CentOS 7.3) 下快速安装Mysql数据库(安装教程)2.后复制阿里云配置 MySQL 远程连接的详细步骤
- MySQL主从复制配置流程(win7环境,Linux虚拟机结合简单测试演示)
- ubuntu上搭建配置mysql和tomcat测试环境
- 笔记:centos6 mysql配置测试
- 测试环境搭建之centos系统编译安装nginx+php环境另加独立mysql
- MySQL主从介绍、准备工作、准备工作、配置从、测试主从同步
- 在阿里云的CentOS环境中安装配置MySQL的教程_Mysql
- CentOS6.5 配置LAMP(Apache+MySQL+PHP)环境,并配置phpmyadmin
- CentOS7.4 系统安装配置LAMP(Apache+PHP5+MySQL)服务器环境
- CentOS 7下MySQL5.7.23的服务配置参数测试
- linux中mysql的主从复制数据的相关配置
- centos6下mysql基本配置+主从复制配置
- 【ASP.NET Core快速入门】(三)准备CentOS和Nginx环境
- CentOS 6.5 下MySQL 5.7.12主从复制架构配置记录
- 如何利用docker快速构建MySQL主从复制环境
- linux学习第五十五篇: MySQL主从介绍,准备工作,配置主,配置从,测试主从同步
- 在centos阿里云服务器上配置apache+php+mysql环境
- (二)Linux环境部署(Centos+Nginx+Tomcat+Mysql) - 防火墙配置
- CentOS 7 下MySQL 5.7.12主从复制架构配置记录(亲自验证可行)
- centos环境下使用percona-xtrabackup对mysql5.6数据库innodb和myisam进行快速备份及恢复