首页 > 解决方案 > Apache Artemis - libartemis-native-64.so 发货与手动创建 - 都是相同的

问题描述

Apache Artemis tar.gz 附带了一个bin/lib/linux-x86_64/libartemis-native-64.so我不知道的,直到我手动使用本机源来创建那个 .so 文件。

问题:

2020-08-14 12:24:16,226 INFO  [org.apache.activemq.artemis.integration.bootstrap] AMQ101000: Starting ActiveMQ Artemis Server
2020-08-14 12:24:16,269 INFO  [org.apache.activemq.artemis.core.server] AMQ221000: live Message Broker is starting with configuration Broker Configuration (clustered=true,journalDirectory=data/journal,bindingsDirectory=data/bindings,largeMessagesDirectory=data/large-messages,pagingDirectory=data/paging)
2020-08-14 12:24:16,662 INFO  [org.apache.activemq.artemis.core.server] AMQ221055: There were too many old replicated folders upon startup, removing /brokers/broker1/data/bindings/oldreplica.1
2020-08-14 12:24:16,663 INFO  [org.apache.activemq.artemis.core.server] AMQ222162: Moving data directory /brokers/broker1/data/bindings to /brokers/broker1/data/bindings/oldreplica.3
2020-08-14 12:24:16,667 INFO  [org.apache.activemq.artemis.core.server] AMQ221055: There were too many old replicated folders upon startup, removing /brokers/broker1/data/journal/oldreplica.1
2020-08-14 12:24:16,671 INFO  [org.apache.activemq.artemis.core.server] AMQ222162: Moving data directory /brokers/broker1/data/journal to /brokers/broker1/data/journal/oldreplica.3
2020-08-14 12:24:16,673 INFO  [org.apache.activemq.artemis.core.server] AMQ221055: There were too many old replicated folders upon startup, removing /brokers/broker1/data/paging/oldreplica.1
2020-08-14 12:24:16,674 INFO  [org.apache.activemq.artemis.core.server] AMQ222162: Moving data directory /brokers/broker1/data/paging to /brokers/broker1/data/paging/oldreplica.3
2020-08-14 12:24:16,703 INFO  [org.apache.activemq.artemis.core.server] AMQ221012: Using AIO Journal
2020-08-14 12:24:16,706 WARN  [org.apache.activemq.artemis.core.server] AMQ222007: Security risk! Apache ActiveMQ Artemis is running with the default cluster admin user and default password. Please see the cluster chapter in the ActiveMQ Artemis User Guide for instructions on how to change this.
2020-08-14 12:24:16,716 INFO  [org.apache.activemq.artemis.core.server] AMQ221057: Global Max Size is being adjusted to 1/2 of the JVM max size (-Xmx). being defined as 2,147,483,648
2020-08-14 12:24:16,763 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-server]. Adding protocol support for: CORE
2020-08-14 12:24:16,763 INFO  [org.apache.activemq.artemis.core.server] AMQ221043: Protocol module found: [artemis-amqp-protocol]. Adding protocol support for: AMQP

以下是我遵循的步骤,以防它帮助其他人。

$ sudo yum install libtool gcc-c++ gcc libaio libaio-devel make
  $ ./scripts/compile-native.sh
  // This command threw compilation error for missing gnu/stubs.h (which i think is 32-bit dependency)

上面的命令在 target/ 文件夹中创建了 libartemis-native-64.so。(由于编译错误,未创建 32 位库)

下面是 broker-instance broker1/bin/artemis 的内容。

exec "$JAVACMD" \
    $JAVA_ARGS \
    -Xbootclasspath/a:"$LOG_MANAGER:$WILDFLY_COMMON" \
    -Djava.security.auth.login.config="$ARTEMIS_INSTANCE_ETC/login.config" \
    $ARTEMIS_CLUSTER_PROPS \
    -classpath "$CLASSPATH" \
    -Dartemis.home="$ARTEMIS_HOME" \
    -Dartemis.instance="$ARTEMIS_INSTANCE" \
    -Djava.library.path="$ARTEMIS_HOME/bin/lib/linux-$(uname -m)" \
    -Djava.io.tmpdir="$ARTEMIS_INSTANCE/tmp" \
    -Ddata.dir="$ARTEMIS_DATA_DIR" \
    -Dartemis.instance.etc="$ARTEMIS_INSTANCE_ETC" \
    -Djava.util.logging.manager="$ARTEMIS_LOG_MANAGER" \
    -Dlogging.configuration="$ARTEMIS_LOGGING_CONF" \
    $DEBUG_ARGS \
    org.apache.activemq.artemis.boot.Artemis "$@"

标签: activemq-artemis

解决方案


推荐阅读