官网:https://pulsar.apache.org/docs/3.2.x/administration-pulsar-manager/
版本: 3.2.x
安装和配置
拉取容器
docker pull apachepulsar/pulsar-manager:v0.3.0
运行容器:
# pulsar消息管理工具
CURRENT_DIR=$(cd `dirname $0`; pwd)
BASE_DIR=$(cd $(dirname $0);cd ..; pwd)FROM_DOCKER=apachepulsar/pulsar-manager:v0.3.0
DOCKER_NAME=pagoda_pulsar_manager# 【新建要修改】主机端口
FRONEND_PORT=9527
BACKEND_PORT=7750########################################################
if [[ -n $(docker ps -q -f "name=${DOCKER_NAME}") ]];thenecho "not exist docker name=${DOCKER_NAME}"
elseecho "exist docker name=${DOCKER_NAME}. neet exit, then rm docker."docker rm ${DOCKER_NAME}
fi
########################################################
docker run \
-d \
--restart=always \
--shm-size="20g" \
-p ${FRONEND_PORT}:9527 \
-p ${BACKEND_PORT}:7750 \
-e SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties \
--name ${DOCKER_NAME} \
-it ${FROM_DOCKER} \docker logs -f ${DOCKER_NAME}
设置账号和密码:
CSRF_TOKEN=$(curl http://localhost:7750/pulsar-manager/csrf-token)
curl \-H 'X-XSRF-TOKEN: $CSRF_TOKEN' \-H 'Cookie: XSRF-TOKEN=$CSRF_TOKEN;' \-H "Content-Type: application/json" \-X PUT http://localhost:7750/pulsar-manager/users/superuser \-d '{"name": "admin", "password": "apachepulsar", "description": "test", "email": "username@test.org"}'
页面配置
- 登录:http://localhost:9527
- 默认账户密码:admin,apachepulsar
- 添加环境
- 输入环境信息
- 配置好了以后,点击进入环境
如果有用,请点赞、关注、收藏、分享
。
你的鼓励是我最大的动力