發佈日期:

Mysql Circular replication

Node 1 is master for node2 , node 2 is the master to node 3 , node 3 is master for node1

Node 1 configuration

node 1 my.cnf configuration

server-id       =1
log_bin         =mysql-bin
binlog_do_db    =details
log-slave-updates

create replication account for node 2

create user 'repl'@'%' identified by 'mysqluser';
grant replication slave on *.* to 'repl'@'%';

CHANGE MASTER TO
MASTER_HOST='NODE3-IP',
MASTER_USER='repl',
MASTER_PASSWORD='mysqluser',
MASTER_LOG_FILE='mysql-bin.XXXXX',
MASTER_LOG_POS=XXX;

lock databases and dump to fils , and copy to node 2 , node 3

Node 2 configuration

node 2 my.cnf configuration

server-id       =2
log_bin         =mysql-bin
binlog_do_db    =details
log-slave-updates

node 3 my.cnf configuration

server-id       =3
log_bin         =mysql-bin
binlog_do_db    =details
log-slave-updates
發佈日期:

How to deploy a Registry Key via Group Policy

System administrators often need to deploy one or more Registry Keys in business environment. Customized software or hardware need particolar configurations and companies usually have solutions tailored to their needs.

Whatever the reason is, a Group Policy is the best way to deploy a Registry Key in an Active Domain Directory Services.

The configuration is quite simple and quick.

Open the Group Policy Management panel and create a new Group Policy Object

Give it a name

Go to the Settings tab. Right-click on Computer Configuration or User Configuration and select Edit:

You can deploy the Registry Key on per-computer or per-user basis. We chose a per-computer model. Select New Registry Item from the dropdown menu:

Now you need to specify the Registry Key you want to update, replace, create or delete:

Click Ok and the Registry Key will be deployed: