安装erlang
tar -xvf otp_src_19.0.tar.gz
cd otp_src_19.0
./configure
make && make install
验证erlang是否安装成功:erl
安装rabbitMQ
tar -xvf rabbitmq-server-generic-unix-3.6.15.tar
cp -r rabbitmq_server-3.6.15 /datum/webapp/rabbitmq
export PATH=/datum/webapp/rabbitmq/sbin:$PATH
source /etc/profile
rabbitmq-plugins enable rabbitmq_management
./rabbitmqctl add_user admin password
./rabbitmqctl set_user_tags admin administrator
./rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
cd rabbitmq/sbin,./rabbitmq-server -detached可以实现后台启动
./rabbitmqctl stop