Note: First confirm that Docker is installed and running on your machine.
docker pull phial3/dubbo-go-pixiu:latest
Prepare the log.yml
and conf.yaml
configuration files, and mount these two configuration files to the local directory when starting Pixiu.
Foreground Start: Convenient to check if the service information is running normally.
docker run --name dubbo-go-pixiu -p 8883:8883 \
-v /yourpath/conf.yaml:/etc/pixiu/conf.yaml \
-v /yourpath/log.yml:/etc/pixiu/log.yml \
apache/dubbo-go-pixiu:latest
Background Start:
docker run -itd --name dubbo-go-pixiu -p 8883:8883 \
-v /yourpath/conf.yaml:/etc/pixiu/conf.yaml \
-v /yourpath/log.yml:/etc/pixiu/log.yml \
apache/dubbo-go-pixiu:latest
Note:
(1) The
dubbo-go-pixiu
after the--name
command is the name of your Pixiu instance, which can be modified as you like.(2) The path
/yourpath/**
in the command is the absolute path where you store the Pixiu configuration files locally.
docker ps | grep dubbo-go-pixiu
Running Pixiu instance.
docker exec -it dubbo-go-pixiu /bin/bash
Enter Pixiu.
docker stop dubbo-go-pixiu
Stop Pixiu.
docker restart dubbo-go-pixiu
Restart Pixiu.
Note: First confirm that Golang 1.15+ development environment is installed on your machine and that go mod
is enabled.
git clone git@github.com:apache/dubbo-go-pixiu.git
Enter the Pixiu source code directory cd dubbo-go-pixiu/
, and modify the conf.yaml
and log.yml
configuration files in the dubbo-go-pixiu/configs/
directory.
make build
in the Pixiu source code directory dubbo-go-pixiu/
.dubbo-go-pixiu
will be generated in the current directory.Run make run
in the current directory to start the Pixiu service directly based on your current configuration.