Erlang
-
下载
wget http://erlang.org/download/otp_src_18.2.1.tar.gz
-
解压
tar zxvf otp_src_18.2.1.tar.gz cd otp_src_18.2.1
-
安装 sudo apt-get install libncurses5 libncurses5-dev libssl-dev unixodbc unixodbc-dev g++ xsltproc zip make ./configure --enable-smp-support --enable-threads --enable-kernel-poll --enable-hipe --without-javac make -j 4 sudo make install
RabbitMQ
-
下载
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1.tar.xz
-
解压 tar xvf rabbitmq-server-3.6.1.tar.xz cd rabbitmq-server-3.6.1
-
安装 sudo make RMQ_ERLAPP_DIR=/opt/rabbitmq install
-
创建软链接 sudo ln -s /opt/rabbitmq/sbin/rabbitmq-server /usr/bin/rabbitmq-server sudo ln -s /opt/rabbitmq/sbin/rabbitmq-env /usr/bin/rabbitmq-env sudo ln -s /opt/rabbitmq/sbin/rabbitmq-plugins /usr/bin/rabbitmq-plugins sudo ln -s /opt/rabbitmq/sbin/rabbitmqctl /usr/bin/rabbitmqctl
-
启用 rabbitmq_management
sudo mkdir -p /etc/rabbitmq sudo rabbitmq-plugins enable rabbitmq_management
-
创建mnesia数据目录 sudo mkdir -p /var/lib/rabbitmq/mnesia/
-
启动
sudo rabbitmq-server -detached
-
停止
sudo rabbitmqctl stop
-
查看插件
sudo rabbitmq-plugins list
-
创建用户
sudo rabbitmqctl add_user nate 123123 sudo rabbitmqctl set_user_tags nate administrator