
waljqiang/emqx| 端口 | 协议 |
|---|---|
| 1883 | mqtt:tcp |
| 8081 | http:management |
| 8083 | mqtt:ws |
| 8084 | mqtt:wss |
| 8883 | mqtt:ssl |
| *** | mqtt:tcp内部端口 |
| *** | dashboard |
| 4369 | epmd (Erlang-distrbution port mapper daemon) listener (deprecated) |
| 4370 | default Erlang distrbution port |
| 5369 | for gen_rpc port mapping |
| 6369 | for distributed node |
| 6370 | for distributed node |
sysctl -w fs.file-max=2097152 sysctl -w fs.nr_open=2097152 echo 2097152 > /proc/sys/fs/nr_open
* soft nofile *** * hard nofile ***
sysctl -w net.core.somaxconn=32768 sysctl -w net.ipv4.tcp_max_syn_backlog=*** sysctl -w net.core.netdev_max_backlog=***
sysctl -w net.core.rmem_default=262144 sysctl -w net.core.wmem_default=262144 sysctl -w net.core.rmem_max=*** sysctl -w net.core.wmem_max=*** sysctl -w net.core.optmem_max=*** #sysctl -w net.ipv4.tcp_mem='*** *** ***' sysctl -w net.ipv4.tcp_rmem='1024 4096 ***' sysctl -w net.ipv4.tcp_wmem='1024 4096 ***'
sysctl -w net.netfilter.nf_conntrack_max=*** sysctl -w net.netfilter.nf_conntrack_tcp_timeout_time_wait=30
sysctl -w net.ipv4.tcp_max_tw_buckets=*** # 注意:不建议开启该设置,NAT 模式下可能引起连接 RST # sysctl -w net.ipv4.tcp_tw_recycle=1 # sysctl -w net.ipv4.tcp_tw_reuse=1
## Erlang Process Limit node.process_limit = 2097152 ## Sets the maximum number of simultaneously existing ports for this system node.max_ports = ***
docker run -d --name emqx -p ***:*** -p 1883:1883 -p 4369:4369 \ --sysctl fs.file-max=2097152 \ --sysctl fs.nr_open=2097152 \ --sysctl net.core.somaxconn=32768 \ --sysctl net.ipv4.tcp_max_syn_backlog=*** \ --sysctl net.core.netdev_max_backlog=*** \ --sysctl net.ipv4.ip_local_port_range=1000 65535 \ --sysctl net.core.rmem_default=262144 \ --sysctl net.core.wmem_default=262144 \ --sysctl net.core.rmem_max=*** \ --sysctl net.core.wmem_max=*** \ --sysctl net.core.optmem_max=*** \ --sysctl net.ipv4.tcp_rmem=1024 4096 *** \ --sysctl net.ipv4.tcp_wmem=1024 4096 *** \ --sysctl net.ipv4.tcp_max_tw_buckets=*** \ --sysctl net.ipv4.tcp_fin_timeout=15 \ emqx/emqx:4.0.0
## TCP Listener listener.tcp.external = 0.0.0.0:1883 listener.tcp.external.acceptors = 64 listener.tcp.external.max_connections = ***
sysctl -w net.ipv4.ip_local_port_range="500 65535" echo *** > /proc/sys/fs/nr_open ulimit -n ***

manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务