Kafka startup command usage example
kafka-server-start config/server.properties
config/server.properties
is the configuration file of the Kafka server. kafka-server-start config/server-1.properties & kafka-server-start config/server-2.properties & kafka-server-start config/server-3.properties
config/server-1.properties
, config/server-2.properties
, config/server-3.properties
are the configuration files of the three Kafka servers. kafka-server-start --zookeeper localhost:2181 config/server.properties
localhost:2181
is the address of ZooKeeper. kafka-server-start --jmx-port 9999 config/server.properties
9999
is the port number of JMX. kafka-server-start --ssl-keystore-location /path/to/keystore.jks --ssl-keystore-password secret --ssl-key-password secret config/server.properties
/path/to/keystore.jks
is the path to the SSL keystore. secret
is the password for the SSL keystore. Notes
Troubleshooting
If the Kafka server cannot start, you can check the following points:
Other resources
The above is the detailed content of Examples and considerations for Kafka startup commands. For more information, please follow other related articles on the PHP Chinese website!