<div dir="ltr"><div>It's actually readable with 644 permission.<br></div>How can I know where it read from the config file<br><div><br>$ ll /etc/rabbitmq/<br>总用量 28<br>drwxr-xr-x 2 root root 4096 6月 30 18:25 ./<br>
drwxr-xr-x 155 root root 12288 6月 30 16:17 ../<br>-rw-r--r-- 1 root root 67 6月 30 18:20 enabled_plugins<br>-rw-r--r-- 1 root root 549 6月 30 18:19 rabbitmq.conf<br>-rw-r--r-- 1 root root 35 6月 30 18:23 rabbitmq-env.conf<br>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-30 18:30 GMT+08:00 Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Your config file is not being read.<br>
<br>
As I've said twice before, the log file will tell you where the server looked for the config file. Please check that.<br>
<br>
If it is looking in the right place but still says "not found", you might have a permissions issue - the config file must be readable by the rabbitmq user.<br>
<br>
Cheers, Simon<div class=""><br>
<br>
On 30/06/14 11:25, Joey Jiao wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
I have set CONFIG_FILE=/etc/rabbitmq/<u></u>rabbitmq in<br>
/etc/rabbitmq/rabbitmq-env.<u></u>conf<br>
<br>
<br>
$ sudo rabbitmqctl environment<br>
Application environment of node 'rabbit@jiangenj-pro' ...<br></div>
[{auth_backends,[*rabbit_auth_<u></u>backend_internal]*},<div><div class="h5"><br>
{auth_mechanisms,['PLAIN','<u></u>AMQPLAIN']},<br>
{backing_queue_module,rabbit_<u></u>variable_queue},<br>
{channel_max,0},<br>
{cluster_nodes,{[],disc}},<br>
{cluster_partition_handling,<u></u>ignore},<br>
{collect_statistics,fine},<br>
{collect_statistics_interval,<u></u>5000},<br>
{default_permissions,[<<".*">><u></u>,<<".*">>,<<".*">>]},<br>
{default_user,<<"guest">>},<br>
{default_user_tags,[<u></u>administrator]},<br>
{default_vhost,<<"/">>},<br>
{delegate_count,16},<br>
{disk_free_limit,50000000},<br>
{enabled_plugins_file,"/etc/<u></u>rabbitmq/enabled_plugins"},<br>
{error_logger,{file,"/var/log/<u></u>rabbitmq/rabbit@jiangenj-pro.<u></u>log"}},<br>
{frame_max,131072},<br>
{halt_on_upgrade_failure,true}<u></u>,<br>
{heartbeat,580},<br>
{hipe_compile,false},<br>
{hipe_modules,[rabbit_reader,<u></u>rabbit_channel,gen_server2,<u></u>rabbit_exchange,<br>
rabbit_command_assembler,<u></u>rabbit_framing_amqp_0_9_1,<br>
rabbit_basic,rabbit_event,<u></u>lists,queue,priority_queue,<br>
<br>
rabbit_router,rabbit_trace,<u></u>rabbit_misc,rabbit_binary_<u></u>parser,<br>
rabbit_exchange_type_direct,<u></u>rabbit_guid,rabbit_net,<br>
rabbit_amqqueue_process,<u></u>rabbit_variable_queue,<br>
<br>
rabbit_binary_generator,<u></u>rabbit_writer,delegate,gb_<u></u>sets,lqueue,<br>
sets,orddict,rabbit_amqqueue,<u></u>rabbit_limiter,gb_trees,<br>
<br>
rabbit_queue_index,rabbit_<u></u>exchange_decorator,gen,dict,<u></u>ordsets,<br>
file_handle_cache,rabbit_msg_<u></u>store,array,<br>
rabbit_msg_store_ets_index,<u></u>rabbit_msg_file,<br>
<br>
rabbit_exchange_type_fanout,<u></u>rabbit_exchange_type_topic,<u></u>mnesia,<br>
<br>
mnesia_lib,rpc,mnesia_tm,qlc,<u></u>sofs,proplists,credit_flow,<u></u>pmon,<br>
<br>
ssl_connection,tls_connection,<u></u>ssl_record,tls_record,gen_fsm,<br>
ssl]},<br>
{included_applications,[]},<br>
{log_levels,[{connection,info}<u></u>]},<br>
{loopback_users,[<<"guest">>]}<u></u>,<br>
{msg_store_file_size_limit,<u></u>16777216},<br>
{msg_store_index_module,<u></u>rabbit_msg_store_ets_index},<br>
{plugins_dir,"/usr/lib/<u></u>rabbitmq/lib/rabbitmq_server-<u></u>3.3.4/sbin/../plugins"},<br>
{plugins_expand_dir,"/var/lib/<u></u>rabbitmq/mnesia/rabbit@<u></u>jiangenj-pro-plugins-expand"},<br>
{queue_index_max_journal_<u></u>entries,65536},<br>
{reverse_dns_lookups,false},<br>
{sasl_error_logger,{file,"/<u></u>var/log/rabbitmq/rabbit@<u></u>jiangenj-pro-sasl.log"}},<br>
{server_properties,[]},<br>
{ssl_apps,[asn1,crypto,public_<u></u>key,ssl]},<br>
{ssl_cert_login_from,<u></u>distinguished_name},<br>
{ssl_listeners,[]},<br>
{ssl_options,[]},<br>
{tcp_listen_options,[binary,<br>
{packet,raw},<br>
{reuseaddr,true},<br>
{backlog,128},<br>
{nodelay,true},<br>
{linger,{true,0}},<br>
{exit_on_close,false}]},<br>
{tcp_listeners,[5672]},<br>
{trace_vhosts,[]},<br>
{vm_memory_high_watermark,0.4}<u></u>,<br>
{vm_memory_high_watermark_<u></u>paging_ratio,0.5}]<br>
...done.<br>
<br>
</div></div></blockquote>
<br><div class="HOEnZb"><div class="h5">
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-Joey Jiao
</div>