vi etc/emqx.conf
-
node {
-
name = "emqx@127.0.0.1"
-
cookie = "emqxsecretcookie"
-
data_dir = "data"
-
}
-
-
cluster {
-
name = emqxcl
-
discovery_strategy = manual
-
}
-
listeners.tcp.default {
-
bind = "0.0.0.0:11883"
-
max_connections = 10240
-
}
-
#listeners.ssl.default {
-
# bind = "0.0.0.0:18883"
-
# max_connections = 1024000
-
# ssl_options {
-
# cacertfile = "etc/certs/cacert.pem"
-
# certfile = "etc/certs/cert.pem"
-
# keyfile = "etc/certs/key.pem"
-
# }
-
#}
-
listeners.ws.default {
-
bind = "0.0.0.0:18083"
-
max_connections = 1024000
-
websocket.mqtt_path = "/mqtt"
-
}
-
#listeners.wss.default {
-
# bind = "0.0.0.0:18084"
-
# max_connections = 1024000
-
# websocket.mqtt_path = "/mqtt"
-
# ssl_options {
-
# cacertfile = "etc/certs/cacert.pem"
-
# certfile = "etc/certs/cert.pem"
-
# keyfile = "etc/certs/key.pem"
-
# }
-
# }
-
dashboard {
-
listeners.http {
-
bind = 28083
-
}
-
}
https :// www. emqx.io/docs/en/v5.0/configuration/listener.html#configure-tcp-listener
阅读(1485) | 评论(0) | 转发(0) |