操作如下:
git clone --recursive https://github.com/tencent-wechat/phxpaxos.git
cd phxpaxos
./build.sh
make && make install
编译plugin:
cd plugin
make && make install
编译sample:
cd sample
make
运行:
cd phxecho
mkdir log
./phxecho 127.0.0.1:11111 127.0.0.1:11111,127.0.0.1:11112,127.0.0.1:11113
./phxecho 127.0.0.1:11112 127.0.0.1:11111,127.0.0.1:11112,127.0.0.1:11113
./phxecho 127.0.0.1:11113 127.0.0.1:11111,127.0.0.1:11112,127.0.0.1:11113
hello phxpaxos:)