vim /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
5.修改配置文件
這里面修改{loopback_users, [<<“guest”>>]}改為{loopback_users, []}
{application, rabbit, %% -- erlang --
[{description, “RabbitMQ”},
{id, “RabbitMQ”},
{vsn, “3.6.5”},
{modules, [‘background_gc’,‘delegate’,‘delegate_sup’,‘dtree’,‘file_handle_cache’,‘file_handle_cache_stats’,‘gatherer’,‘gm’,‘lqueue’,‘mirrored_supervisor_sups’,‘mnesia_sync’,‘mochinum’,‘pg2_fixed’,‘pg_local’,‘rabbit’,‘rabbit_access_control’,‘rabbit_alarm’,‘rabbit_amqqueue_process’,‘rabbit_amqqueue_sup’,‘rabbit_amqqueue_sup_sup’,‘rabbit_auth_mechanism_amqplain’,‘rabbit_auth_mechanism_cr_demo’,‘rabbit_auth_mechanism_plain’,‘rabbit_autoheal’,‘rabbit_binding’,‘rabbit_boot_steps’,‘rabbit_channel_sup’,‘rabbit_channel_sup_sup’,‘rabbit_cli’,‘rabbit_client_sup’,‘rabbit_connection_helper_sup’,‘rabbit_connection_sup’,‘rabbit_control_main’,‘rabbit_ctl_usage’,‘rabbit_dead_letter’,‘rabbit_diagnostics’,‘rabbit_direct’,‘rabbit_disk_monitor’,‘rabbit_epmd_monitor’,‘rabbit_error_logger’,‘rabbit_error_logger_file_h’,‘rabbit_exchange’,‘rabbit_exchange_parameters’,‘rabbit_exchange_type_direct’,‘rabbit_exchange_type_fanout’,‘rabbit_exchange_type_headers’,‘rabbit_exchange_type_invalid’,‘rabbit_exchange_type_topic’,‘rabbit_file’,‘rabbit_framing’,‘rabbit_guid’,‘rabbit_hipe’,‘rabbit_limiter’,‘rabbit_log’,‘rabbit_memory_monitor’,‘rabbit_mirror_queue_coordinator’,‘rabbit_mirror_queue_master’,‘rabbit_mirror_queue_misc’,‘rabbit_mirror_queue_mode’,‘rabbit_mirror_queue_mode_all’,‘rabbit_mirror_queue_mode_exactly’,‘rabbit_mirror_queue_mode_nodes’,‘rabbit_mirror_queue_slave’,‘rabbit_mirror_queue_sync’,‘rabbit_mnesia’,‘rabbit_mnesia_rename’,‘rabbit_msg_file’,‘rabbit_msg_store’,‘rabbit_msg_store_ets_index’,‘rabbit_msg_store_gc’,‘rabbit_node_monitor’,‘rabbit_parameter_validation’,‘rabbit_password’,‘rabbit_password_hashing_md5’,‘rabbit_password_hashing_sha256’,‘rabbit_password_hashing_sha512’,‘rabbit_plugins’,‘rabbit_plugins_main’,‘rabbit_plugins_usage’,‘rabbit_policies’,‘rabbit_policy’,‘rabbit_prelaunch’,‘rabbit_prequeue’,‘rabbit_priority_queue’,‘rabbit_queue_consumers’,‘rabbit_queue_index’,‘rabbit_queue_location_client_local’,‘rabbit_queue_location_min_masters’,‘rabbit_queue_location_random’,‘rabbit_queue_location_validator’,‘rabbit_queue_master_location_misc’,‘rabbit_recovery_terms’,‘rabbit_registry’,‘rabbit_resource_monitor_misc’,‘rabbit_restartable_sup’,‘rabbit_router’,‘rabbit_runtime_parameters’,‘rabbit_sasl_report_file_h’,‘rabbit_ssl’,‘rabbit_sup’,‘rabbit_table’,‘rabbit_trace’,‘rabbit_upgrade’,‘rabbit_upgrade_functions’,‘rabbit_variable_queue’,‘rabbit_version’,‘rabbit_vhost’,‘rabbit_vm’,‘supervised_lifecycle’,‘tcp_listener’,‘tcp_listener_sup’,‘truncate’,‘vm_memory_monitor’,‘worker_pool’,‘worker_pool_sup’,‘worker_pool_worker’]},
{registered, [rabbit_amqqueue_sup,
rabbit_log,
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}},
自我介紹一下,小編13年上海交大畢業(yè),曾經(jīng)在小公司待過,也去過華為、OPPO等大廠,18年進(jìn)入阿里一直到現(xiàn)在。
深知大多數(shù)Linux運(yùn)維工程師,想要提升技能,往往是自己摸索成長或者是報班學(xué)習(xí),但對于培訓(xùn)機(jī)構(gòu)動則幾千的學(xué)費(fèi),著實壓力不小。自己不成體系的自學(xué)效果低效又漫長,而且極易碰到天花板技術(shù)停滯不前!
因此收集整理了一份《2024年Linux運(yùn)維全套學(xué)習(xí)資料》,初衷也很簡單,就是希望能夠幫助到想自學(xué)提升又不知道該從何學(xué)起的朋友,同時減輕大家的負(fù)擔(dān)。
既有適合小白學(xué)習(xí)的零基礎(chǔ)資料,也有適合3年以上經(jīng)驗的小伙伴深入學(xué)習(xí)提升的進(jìn)階課程,基本涵蓋了95%以上Linux運(yùn)維知識點(diǎn),真正體系化!
由于文件比較大,這里只是將部分目錄大綱截圖出來,每個節(jié)點(diǎn)里面都包含大廠面經(jīng)、學(xué)習(xí)筆記、源碼講義、實戰(zhàn)項目、講解視頻,并且后續(xù)會持續(xù)更新
如果你覺得這些內(nèi)容對你有幫助,可以添加VX:vip1024b (備注Linux運(yùn)維獲?。?/strong>
一個人可以走的很快,但一群人才能走的更遠(yuǎn)。如果你從事以下工作或?qū)σ韵赂信d趣,歡迎戳這里加入程序員的圈子,讓我們一起學(xué)習(xí)成長!
AI人工智能、Android移動開發(fā)、AIGC大模型、C C#、Go語言、Java、Linux運(yùn)維、云計算、MySQL、PMP、網(wǎng)絡(luò)安全、Python爬蟲、UE5、UI設(shè)計、Unity3D、Web前端開發(fā)、產(chǎn)品經(jīng)理、車載開發(fā)、大數(shù)據(jù)、鴻蒙、計算機(jī)網(wǎng)絡(luò)、嵌入式物聯(lián)網(wǎng)、軟件測試、數(shù)據(jù)結(jié)構(gòu)與算法、音視頻開發(fā)、Flutter、IOS開發(fā)、PHP開發(fā)、.NET、安卓逆向、云計算文章來源地址http://www.zghlxwxcb.cn/news/detail-851200.html
orums/4304bb5a486d4c3ab8389e65ecb71ac0)文章來源:http://www.zghlxwxcb.cn/news/detail-851200.html
AI人工智能、Android移動開發(fā)、AIGC大模型、C C#、Go語言、Java、Linux運(yùn)維、云計算、MySQL、PMP、網(wǎng)絡(luò)安全、Python爬蟲、UE5、UI設(shè)計、Unity3D、Web前端開發(fā)、產(chǎn)品經(jīng)理、車載開發(fā)、大數(shù)據(jù)、鴻蒙、計算機(jī)網(wǎng)絡(luò)、嵌入式物聯(lián)網(wǎng)、軟件測試、數(shù)據(jù)結(jié)構(gòu)與算法、音視頻開發(fā)、Flutter、IOS開發(fā)、PHP開發(fā)、.NET、安卓逆向、云計算
到了這里,關(guān)于分布式消息隊列RabbitMQ-Linux下服務(wù)搭建,面試完騰訊我才發(fā)現(xiàn)這些知識點(diǎn)竟然沒掌握全的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!