###master-slave### in one mechine you can test by change dbfile,port. slave configuration file: slaveof master-ip master-port