centos7 安装 Erlang 和 RabbitMq
程序员文章站
2022-04-26 15:17:48
...
ERLANG安装
1.安装依赖
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl
2.创建software文件夹并进入
mkdir software
cd software
3.下载Erlang
wget https://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm
4.安装
rpm -ivh erlang-19.0.4-1.el6.x86_64.rpm
5.检查是否配置成功
erl
RabbitMQ安装
1.安装依赖
yum install socat build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
2.进入software
cd /software
3.下载rabbitmq-server安装包
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.4.1/rabbitmq-server-3.4.1-1.noarch.rpm
4.安装
rpm -ivh rabbitmq-server-3.4.1-1.noarch.rpm
5.查看状态或启动
systemctl status rabbitmq-server
提示未启动,启动服务
systemctl start rabbitmq-server
再来看看
启动成功
6.设置开机启动
chkconfig rabbitmq-server on
7.设置配置文件
cp /usr/share/doc/rabbitmq-server-3.6.5/rabbitmq.config.example /etc/rabbitmq/
mv rabbitmq.config.example rabbitmq.config
8.开启用户远程访问
sed -i 's/%% {loopback_users, \[\]},/{loopback_users, \[\]}/' /etc/rabbitmq/rabbitmq.config
9.开启web界面管理工具并重启
rabbitmq-plugins enable rabbitmq_management
systemctl restart rabbitmq-server
上一篇: 联想Z6青春版今日首销:4+64GB版本立减100元
下一篇: 广州工作的儿子让母亲去带孩子