Jennifer88huang commented on a change in pull request #8085: URL: https://github.com/apache/pulsar/pull/8085#discussion_r493123661
########## File path: site2/docs/administration-pulsar-manager.md ########## @@ -14,38 +14,38 @@ Pulsar Manager is a web-based GUI management and monitoring tool that helps admi The easiest way to use the Pulsar Manager is to run it inside a [Docker](https://www.docker.com/products/docker) container. +```shell +docker pull apachepulsar/pulsar-manager:v0.2.0 +docker run -it \ + -p 9527:9527 -p 7750:7750 \ + -e SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties \ + apachepulsar/pulsar-manager:v0.2.0 ``` -docker pull apachepulsar/pulsar-manager:v0.1.0 -mkdir temp-data -chmod 777 temp-data -cd temp-data -docker run -it -p 9527:9527 -e REDIRECT_HOST=http://192.168.0.104 -e REDIRECT_PORT=9527 -e DRIVER_CLASS_NAME=org.postgresql.Driver -e URL='jdbc:postgresql://127.0.0.1:5432/pulsar_manager' -e USERNAME=pulsar -e PASSWORD=pulsar -e LOG_LEVEL=DEBUG -v $PWD:/data apachepulsar/pulsar-manager:v0.1.0 /bin/sh -``` - -* REDIRECT_HOST: the IP address of the front-end server. - -* REDIRECT_PORT: the port of the front-end server. - -* DRIVER_CLASS_NAME: the driver class name of PostgreSQL. - -* URL: the URL of PostgreSQL JDBC, For example, `jdbc:postgresql://127.0.0.1:5432/pulsar_manager`. -* USERNAME: the username of PostgreSQL. +* `SPRING_CONFIGURATION_FILE`: Default configuration file for spring. -* PASSWORD: the password of PostgreSQL. +#### Set administrator account and password -* LOG_LEVEL: level of log. + ```shell +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": "[email protected]"}' +``` -You can find the in the [Docker](https://github.com/apache/pulsar-manager/tree/master/docker) directory and build an image from scratch as well: +You can find the in the [Docker](https://github.com/apache/pulsar-manager/tree/master/docker) directory and build an image from source code as well: Review comment: find the xxx? What's the modifier of "the"? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
