ubuntu离线安装rabbitmq
时间: 2023-05-20 09:04:51 浏览: 264
可以通过以下步骤在Ubuntu上离线安装RabbitMQ:
1. 下载RabbitMQ的deb包和依赖包,可以从官网或者镜像站下载。
2. 将下载的deb包和依赖包复制到Ubuntu系统中。
3. 安装依赖包,可以使用dpkg命令进行安装,例如:
```
sudo dpkg -i erlang-base_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-asn1_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-crypto_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-public-key_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-ssl_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-syntax-tools_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-mnesia_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-runtime-tools_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-inets_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-os-mon_22.3.4.1-1_amd64.deb
sudo dpkg -i erlang-xmerl_22.3.4.1-1_amd64.deb
```
4. 安装RabbitMQ,可以使用dpkg命令进行安装,例如:
```
sudo dpkg -i rabbitmq-server_3.8.9-1_all.deb
```
5. 启动RabbitMQ服务,可以使用以下命令启动:
```
sudo systemctl start rabbitmq-server
```
6. 验证RabbitMQ是否安装成功,可以使用以下命令:
```
sudo rabbitmqctl status
```
如果输出类似于以下内容,则表示RabbitMQ已经成功安装:
```
Status of node rabbit@localhost ...
[{pid,1593},
{running_applications,[{rabbit,"RabbitMQ","3.8.9"},
{rabbit_common,[],"3.8.9"},
{xmerl,"XML parser","1.3.18"},
{os_mon,"CPO CXC 138 46","2.4.7"},
{cowboy,"Small, fast, modern HTTP server.","2.8.0"},
{cowlib,"Support library for manipulating Web protocols.","2.9.1"},
{ranch,"Socket acceptor pool for TCP protocols.","1.7.1"},
{ssl,"Erlang/OTP SSL application","10.6.2"},
{public_key,"Public key infrastructure","1.10.4"},
{asn1,"The Erlang ASN1 compiler version 5.0.8","5.0.8"}]},
{os,{unix,linux}},
{erlang_version,"Erlang/OTP 22 [erts-10.7.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:64] [hipe] [dtrace]\n"},
{memory,[{total,37437904},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,0},
{queue_procs,0},
{queue_slave_procs,0},
{plugins,0},
{other_proc,2147483647},
{mnesia,0},
{mgmt_db,0},
{msg_index,0},
{other_ets,0},
{binary,0},
{code,0},
{atom,1049},
{other_system,0}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6708623872},
{disk_free_limit,50000000},
{disk_free,105586227712},
{file_descriptors,[{total_limit,1048576},
{total_used,2},
{sockets_limit,943626},
{sockets_used,0}]},
{processes,[{limit,1048576},{used,57}]},
{run_queue,0},
{uptime,6}]
```
希望这个回答能够帮助到你!
阅读全文