请问企业版许可添加不上怎么处理?

根据帮助文档,执行:# emqx_ctl license reload ./emqx-enterprise.lic
后登录前台查看版本显示还是开源版,而且执行该命令后提示一堆的帮助信息,不知道咋回事。

/etc/emqx# emqx_ctl license reload ./emqx-enterprise.lic
Usage: emqx ctl

status # Show broker status

broker # Show broker version, uptime and description
broker stats # Show broker statistics of clients, topics, subscribers
broker metrics # Show broker metrics

cluster join # Join the cluster
cluster leave # Leave the cluster
cluster force-leave # Force the node leave from cluster
cluster status [–json] # Cluster status
cluster discovery enable # Enable and run automatic cluster discovery (if configured)

clients list # List all clients
clients show # Show a client
clients kick # Kick out a client

topics list # List all topics
topics show # Show a topic

subscriptions list # List all subscriptions
subscriptions show # Show subscriptions of a client
subscriptions add # Add a static subscription manually
subscriptions del # Delete a static subscription manually

plugins [Name-Vsn] # e.g. ‘start emqx_plugin_template-5.0-rc.1’
plugins list # List all installed plugins
plugins describe Name-Vsn # Describe an installed plugins
plugins install Name-Vsn # Install a plugin package placed
# in plugin’sinstall_dir
plugins uninstall Name-Vsn # Uninstall a plugin. NOTE: it deletes
# all files in install_dir/Name-Vsn
plugins start Name-Vsn # Start a plugin
plugins stop Name-Vsn # Stop a plugin
plugins restart Name-Vsn # Stop then start a plugin
plugins disable Name-Vsn # Disable auto-boot
plugins enable Name-Vsn [Position] # Enable auto-boot at Position in the boot list, where Position could be
# ‘front’, ‘rear’, or ‘before Other-Vsn’ to specify a relative position.
# The Position parameter can be used to adjust the boot order.
# If no Position is given, an already configured plugin
# will stay at is old position; a newly plugin is appended to the rear
# e.g. plugins disable foo-0.1.0 front
# plugins enable bar-0.2.0 before foo-0.1.0

vm all # Show info of Erlang VM
vm load # Show load of Erlang VM
vm memory # Show memory of Erlang VM
vm process # Show process of Erlang VM
vm io # Show IO of Erlang VM
vm ports # Show Ports of Erlang VM

mnesia # Mnesia system info

log set-level # Set the overall log level
log primary-level # Show the primary log level now
log primary-level # Set the primary log level
log handlers list # Show log handlers
log handlers start # Start a log handler
log handlers stop # Stop a log handler
log handlers set-level # Set log level of a log handler

trace list # List all traces started on local node
trace start client [] [] # Traces for a client on local node (Formatter=text|json)
trace stop client # Stop tracing for a client on local node
trace start topic [] [] # Traces for a topic on local node (Formatter=text|json)
trace stop topic # Stop tracing for a topic on local node
trace start ip_address [] [] # Traces for a client ip on local node (Formatter=text|json)
trace stop ip_address # Stop tracing for a client ip on local node
trace start ruleid [] [] # Traces for a rule ID on local node (Formatter=text|json)
trace stop ruleid # Stop tracing for a rule ID on local node

traces list # List all cluster traces started
traces start client [] [] # Traces for a client in cluster (Formatter=text|json)
traces start topic [] [] # Traces for a topic in cluster (Formatter=text|json)
traces start ruleid [] [] # Traces for a rule ID in cluster (Formatter=text|json)
traces start ip_address [] [] # Traces for a client IP in cluster
# Trace will start immediately on all nodes, including the core and replicant,
# and will end after seconds. The default value for is 1800 seconds. (Formatter=text|json)
traces stop # Stop trace in cluster
traces delete # Delete trace in cluster

listeners # List listeners
listeners stop # Stop a listener
listeners start # Start a listener
listeners restart # Restart a listener

authz cache-clean all # Clears authorization cache on all nodes
authz cache-clean node # Clears authorization cache on given node
authz cache-clean # Clears authorization cache for given client

pem_cache clean all # Clears x509 certificate cache on all nodes
pem_cache clean node # Clears x509 certificate cache on given node

olp status # Return OLP status if system is overloaded
olp enable # Enable overload protection
olp disable # Disable overload protection

data import # Import data from the specified tar archive file
data export # Export data

ds # Durable storage is disabled

retainer info # Show the count of retained messages
retainer topics # Same as retainer topic 1 1000
retainer topics # Show topics of retained messages by the specified range
retainer clean # Clean all retained messages
retainer clean # Clean retained messages by the specified topic filter
retainer reindex status # Show reindex status.
# Only available for built-in backend.
retainer reindex start [force] # Generate new retainer topic indices from config settings.
# Pass true as to ignore previously started reindexing.
# Only available for built-in backend.

observer status # Start observer in the current console
observer bin_leak # Force all processes to perform garbage collection and prints the top-100 processes that freed the biggest amount of binaries, potentially highlighting leaks.
observer load Mod # Enhanced module synchronization across all cluster nodes

conf reload --replace|–merge # reload etc/emqx.conf on local node
# The new configuration values will be overlaid on the existing values by default.
# use the --replace flag to replace existing values with the new ones instead.
---------------------------------- # ------------
conf show_keys # print all the currently used configuration keys.
conf show [] # Print in-use configs (including default values) under the given key.
# Print ALL keys if key is not provided
conf load --replace|–merge # Load a HOCON format config file.
# The new configuration values will be overlaid on the existing values by default.
# use the --replace flag to replace existing values with the new ones instead.
# The current node will initiate a cluster wide config change
# transaction to sync the changes to other nodes in the cluster.
# NOTE: do not make runtime config changes during rolling upgrade.
---------------------------------- # ------------
conf cluster_sync status # Show cluster config sync status summary for all nodes.
conf cluster_sync inspect # Inspect detailed information of the config change transaction at the given commit ID
conf cluster_sync skip [node] # Increment the (currently failing) commit on the given node.
# WARNING: This results in inconsistent configs among the clustered nodes.
conf cluster_sync fast_forward [node] # Fast-forward config change to the given commit ID on the given node.
# WARNING: This results in inconsistent configs among the clustered nodes.

rules list # List rules
rules show # Show a rule

admins add # Add dashboard user
admins passwd # Reset dashboard user password
admins del # Delete dashboard user

gateway list # List all gateway
gateway lookup # Lookup a gateway detailed information
gateway load # Load a gateway with config
gateway unload # Unload the gateway
gateway stop # Stop the gateway
gateway start # Start the gateway

gateway-registry list # List all registered gateways

gateway-clients list # List all clients for a gateway
gateway-clients lookup # Lookup the Client Info for specified client
gateway-clients kick # Kick out a client

gateway-metrics # List all metrics for a gateway

开源版本不需要添加企业版本的证书。
加不上的。代码也不一样。
你得安装企业版本

1 个赞

谢谢,明白了。

再顺便问一下,我之前装了开源版,现在要装企业版,原来的要卸载吗?还是直接安装就可以了?

先卸载再安装。

1 个赞