2024年运维最新分布式消息队列RabbitMQ-Linux下服务搭建

本文详细解释了RabbitMQ服务器的配置参数,包括监听端口、SSL选项、内存监控等,并介绍了如何启动服务、检查进程和启用管理插件。同时强调了系统学习的重要性,提供了一个技术交流平台的推荐链接。
摘要由CSDN通过智能技术生成

rabbit_node_monitor,

rabbit_router,

rabbit_sup,

rabbit_direct_client_sup]},

{applications, [kernel, stdlib, sasl, mnesia, rabbit_common, ranch, os_mon, xmerl]},

%% we also depend on crypto, public_key and ssl but they shouldn’t be

%% in here as we don’t actually want to start it

{mod, {rabbit, []}},

{env, [{tcp_listeners, [5672]},

{num_tcp_acceptors, 10},

{ssl_listeners, []},

{num_ssl_acceptors, 1},

{ssl_options, []},

{vm_memory_high_watermark, 0.4},

{vm_memory_high_watermark_paging_ratio, 0.5},

{memory_monitor_interval, 2500},

{disk_free_limit, 50000000}, %% 50MB

{msg_store_index_module, rabbit_msg_store_ets_index},

{backing_queue_module, rabbit_variable_queue},

%% 0 (“no limit”) would make a better default, but that

%% breaks the QPid Java client

{frame_max, 131072},

{channel_max, 0},

{heartbeat, 60},

{msg_store_file_size_limit, 16777216},

{fhc_write_buffering, true},

{fhc_read_buffering, false},

{queue_index_max_journal_entries, 32768},

{queue_index_embed_msgs_below, 4096},

{default_user, <<“guest”>>},

{default_pass, <<“guest”>>},

{default_user_tags, [administrator]},

{default_vhost, <<“/”>>},

{default_permissions, [<<“.“>>, <<”.”>>, <<“.*”>>]},

{loopback_users, []},

{password_hashing_module, rabbit_password_hashing_sha256},

{cluster_nodes, {[], disc}},

{server_properties, []},

{collect_statistics, none},

{collect_statistics_interval, 5000},

{mnesia_table_loading_timeout, 30000},

{auth_mechanisms, [‘PLAIN’, ‘AMQPLAIN’]},

{auth_backends, [rabbit_auth_backend_internal]},

{delegate_count, 16},

{trace_vhosts, []},

{log_levels, [{connection, info}]},

{ssl_cert_login_from, distinguished_name},

{ssl_handshake_timeout, 5000},

{ssl_allow_poodle_attack, false},

{handshake_timeout, 10000},

{reverse_dns_lookups, false},

{cluster_partition_handling, ignore},

{cluster_keepalive_interval, 10000},

{tcp_listen_options, [{backlog, 128},

{nodelay, true},

{linger, {true, 0}},

{exit_on_close, false}]},

{halt_on_upgrade_failure, true},

{hipe_compile, false},

%% see bug 24513 for how this list was created

{hipe_modules,

[rabbit_reader, rabbit_channel, gen_server2, rabbit_exchange,

rabbit_command_assembler, rabbit_framing_amqp_0_9_1, rabbit_basic,

rabbit_event, lists, queue, priority_queue, rabbit_router,

rabbit_trace, rabbit_misc, rabbit_binary_parser,

rabbit_exchange_type_direct, rabbit_guid, rabbit_net,

rabbit_amqqueue_process, rabbit_variable_queue,

rabbit_binary_generator, rabbit_writer, delegate, gb_sets, lqueue,

sets, orddict, rabbit_amqqueue, rabbit_limiter, gb_trees,

rabbit_queue_index, rabbit_exchange_decorator, gen, dict, ordsets,

file_handle_cache, rabbit_msg_store, array,

rabbit_msg_store_ets_index, rabbit_msg_file,

rabbit_exchange_type_fanout, rabbit_exchange_type_topic, mnesia,

mnesia_lib, rpc, mnesia_tm, qlc, sofs, proplists, credit_flow,

pmon, ssl_connection, tls_connection, ssl_record, tls_record,

gen_fsm, ssl]},

{ssl_apps, [asn1, crypto, public_key, ssl]},

%% see rabbitmq-server#114

{mirroring_flow_control, true},

{mirroring_sync_batch_size, 4096},

%% see rabbitmq-server#227 and related tickets.

%% msg_store_credit_disc_bound only takes effect when

%% messages are persisted to the message store. If messages

%% are embedded on the queue index, then modifying this

%% setting has no effect because credit_flow is not used when

%% writing to the queue index. See the setting

%% queue_index_embed_msgs_below above.

{msg_store_credit_disc_bound, {2000, 500}},

{msg_store_io_batch_size, 2048},

%% see rabbitmq-server#143

{credit_flow_default_credit, {200, 50}},

%% see rabbitmq-server#248

%% and rabbitmq-server#667

{channel_operation_timeout, 15000}

]}]}.

6. 启动服务

rabbitmq-server start &

7.查看一下进程

ps -ef | grep rabbit

8.查看一下服务(这里如果没用lsof就去用yum安装一下)

lsof -i:5672

9.启动插件(图形化界面)

rabbitmq-plugins enable rabbitmq_management

网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。

需要这份系统化的资料的朋友,可以点击这里获取!

一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!

  • 9
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值