1.2 docker安装

1.2.1 安装

  1. git clone https://github.com/douyu/juno-install.git
  2. docker build -t juno-install:v1 -f ./docker/all-in-one/Dockerfile ./
  3. docker run -itd --name juno-demo -p 50000:50000 -p 50004:50004 --privileged=true juno-install:v1 /usr/sbin/init
  4. docker exec -it juno-demo /bin/bash
  5. ./install.sh

1.2.2 调试

  1. #查看mysql
  2. mysql -uroot
  3. #查看etcd里内容
  4. etcdctl get "" --prefix
  5. #查看go
  6. go version
  7. #查看pprof
  8. go tool pprof -http=":8081" http://127.0.0.1:50004/debug/pprof/profile