1. 宿主机重启自动恢复虚拟机运行状态 1.1 参数描述与默认值 # Whether to start guests that were running before the host rebooted (boolean # value) #resume_guests_state_on_host_boot=false 1.2 修改配置为状态恢复 resume_guests_state_on_host_boot=true…
Rabbitmq 官方给的NET consumer示例代码如下,但使用过程,会遇到connection断开的问题,一旦断开,这个代码就会报错,如果你的消费者端是这样的代码的话,就会导致消费者挂掉. using System; using RabbitMQ.Client; using RabbitMQ.Client.Events; using System.Text; class ReceiveLogs { public static void Main() { var factory = new…
必须是MM架构,而且一台主库M1是完好无损的,一台主库M2可以根据M1主库来进行重建:如果MS架构,自己可以稍微做一下脚本修改动作,也能使用,架构如下图所示: 3 总体思路,建立主脚本a_build_rep.sh 思路分为13个步骤,如a_build_rep.sh脚本中的备注 #!/bin/bash set -x set -e set -u #(1)准备好目录以及全局变量 BACKUP_FOLDER=/mysqldata/shared/backup2 TEMP_SETUP_FOLDER=/tm…
### scripts 1--the scirpt is used for restore db from vcs to a point to time recovery--and the target datafile and logfile is different from source ###### config env export start_date="10/31/2017 06:00:00"export end_date="11/01/2017 00:00:0…