Skip to content

Commit

Permalink
Update magenx.install.latest.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
magenx authored Dec 21, 2021
1 parent 1f79169 commit 9834c23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions magenx.install.latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,14 @@ if [ "${rabbit_install}" == "y" ];then
fi
if [ "$?" = 0 ]; then
cat > /etc/rabbitmq/rabbitmq-env.conf <<END
NODENAME=rabbit@localhost
NODE_IP_ADDRESS=127.0.0.1
ERL_EPMD_ADDRESS=127.0.0.1
PID_FILE=/var/lib/rabbitmq/mnesia/rabbitmq_pid
END

echo '[{kernel, [{inet_dist_use_interface, {127,0,0,1}}]},{rabbit, [{tcp_listeners, [{"127.0.0.1", 5672}]}]}].' > /etc/rabbitmq/rabbitmq.config

cat >> /etc/sysctl.conf <<END
net.ipv6.conf.lo.disable_ipv6 = 0
END
Expand All @@ -873,8 +876,7 @@ cat > /usr/local/bin/rabbitmq_reset <<END
service rabbitmq-server stop
epmd -kill
export ERL_EPMD_ADDRESS=127.0.0.1
epmd -daemon
epmd -address 127.0.0.1 -daemon
sleep 5
service rabbitmq-server start
rabbitmqctl wait /var/lib/rabbitmq/mnesia/rabbitmq_pid
Expand Down

0 comments on commit 9834c23

Please sign in to comment.