一、环境准备
1、需要用jdk8或者jdk11,不能用jdk17或者21
2、安装jdk环境
二、下载Pulsar-Manager
三、解压缩pulsar-manager
tar -zxf apache-pulsar-manager-0.3.0-bin.tar.gz
解压缩后的目录
四、再次解压缩pulsar-manager.tar
tar -xvf pulsar-manager.tar
chmod -R 777 pulsar-manager
五、把将dist包拷贝到pulsar-manager/bin目录下并更名为ui
cd pulsar-manager/bin
cp -r ../dist ui
六、启动pulsar-manager
./bin/pulsar-manager
七、初始化超级用户密码
CSRF_TOKEN=$(curl http://192.168.42.133: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://192.168.42.133:7750/pulsar-manager/users/superuser -d '{"name":"pulsar","password":"pulsar","description":"dev","email":"409031406@qq.com"}'
八、访问pulsar manager
http://192.168.42.133:7750/ui/index.html
用户名/密码:pulsar/pulsar
这里需要注意:需要把ui拷贝到bin的目录下才可以