Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
rabbitmq [2015/12/08 11:46]
steve
rabbitmq [2015/12/08 11:48]
steve
Line 74: Line 74:
  
 One gotcha to be aware of is that the default cookie set will have no end-of-line for the string. Adding a new line will change the hash. In this case, it may be simpler to just create your own erlang cookie before starting the primary node. One gotcha to be aware of is that the default cookie set will have no end-of-line for the string. Adding a new line will change the hash. In this case, it may be simpler to just create your own erlang cookie before starting the primary node.
 +
 +The permissions are also set to read-only for the rabbitmq user.
 +
 +In this example, I use pwgen to create a random password as well:
  
 <​code>​ <​code>​
 pwgen 8 1 | tee /​var/​lib/​rabbitmq/​.erlang.cookie pwgen 8 1 | tee /​var/​lib/​rabbitmq/​.erlang.cookie
 chmod 0600 /​var/​lib/​rabbitmq/​.erlang.cookie chmod 0600 /​var/​lib/​rabbitmq/​.erlang.cookie
 +chown rabbitmq: /​var/​lib/​rabbitmq/​.erlang.cookie
 </​code>​ </​code>​