使用什么命令可以关闭远程的pulsar服务或重启

没有搜到这个命令,都是关闭本地standalone或后台standalone的服务,没有找到关闭或重启远程的。

我想象中应该有这个命令:pulsar-admin ip port stop 这样的命令,不知道有没有,感谢。

-a就可以指定到远程的地址进行操作

[azureuser@yajun2 apache-pulsar-2.10.1]$ ./bin/pulsar standalone --help
Usage: [options]
Options:
-a, --advertised-address
Standalone broker advertised address
–bookkeeper-dir
Local bookies base data directory
Default: data/standalone/bookkeeper
–bookkeeper-port
Local bookies base port
Default: 3181

  • -c, --config
    Configuration file path
    -fwc, --functions-worker-conf
    Configuration file for Functions Worker
    Default: /home/azureuser/apache-pulsar-2.10.1/conf/functions_worker.yml
    -g, --generate-docs
    Generate docs
    Default: false
    -h, --help
    Show this help message
    Default: false
    –no-broker
    Only start ZK and BK services, no broker
    Default: false
    -nfw, --no-functions-worker
    Run functions worker with Broker
    Default: false
    -nss, --no-stream-storage
    Disable stream storage
    Default: false
    –num-bookies
    Number of local Bookies
    Default: 1
    –only-broker
    Only start Pulsar broker service (no ZK, BK)
    Default: false
    –stream-storage-port
    Local bookies stream storage port
    Default: 4181
    –wipe-data
    Clean up previous ZK/BK data
    Default: false
    –zookeeper-dir
    Local zooKeeper’s data directory
    Default: data/standalone/zookeeper
    –zookeeper-port
    Local zookeeper’s port
    Default: 2181