安装 rabbitmq(一)
程序员文章站
2022-07-15 08:17:23
...
CentOs6.5 安装rabbitmq(转)
// 安装预环境
yum install gcc gcc-c++
yum install zlib zlin-devel
// 替换系统默认python2.6-->2.7
下载并解压:http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
cd Python-2.7.6
// 配置安装目录
./configure --prefix=/usr/local/python27
// 编译&&安装
make && make install
// 废弃旧python
mv /usr/bin/python /usr/bin/python2.6.6.old
// 建立新版本python链接
ln -s /usr/local/python27/bin/python /usr/bin/python
// 于是现在python -V:
Python 2.7.6
// 修改yum脚本的声明头: /usr/bin/yum
/usr/bin/python ----> /usr/bin/python2.6
// Erlang 安装
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
// 下载Erlang:http://www.erlang.org/download/otp_src_R16B02.tar.gz,解压
// 配置安装
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
// 编译安装
make && make install
// 配置环境变量, vim /etc/profile, 添加:
ERLANG_HOME=/usr/local/erlang
PATH=$ERLANG_HOME/bin:$PATH
export ERLANG_HOME
export PATH
source /etc/profile
输入命令erl检验是否安装成功
// rabbitmq-server安装:
// 依赖包xmlto
yum install xmlto
// 下载,解压之
http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz
// 编译
make
// 安装
make install TARGET_DIR=/opt/rabbitmq SBIN_DIR=/opt/rabbitmq/sbin MAN_DIR=/opt/rabbitmq/man
安装web插件管理界面
mkdir /etc/rabbitmq
./rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@rabbitmqmaster sbin]# ls /etc/rabbitmq
enabled_plugins
// 启动rabbitmq
./rabbitmq-server start
// 有可能报主机名找不到的错误,
vim /etc/hosts
127.0.0.1 localhost ${hostName}
1
guest/guest 登录localhost:15672
可参考:https://my.oschina.net/indestiny/blog/192313
// 安装预环境
yum install gcc gcc-c++
yum install zlib zlin-devel
// 替换系统默认python2.6-->2.7
下载并解压:http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
cd Python-2.7.6
// 配置安装目录
./configure --prefix=/usr/local/python27
// 编译&&安装
make && make install
// 废弃旧python
mv /usr/bin/python /usr/bin/python2.6.6.old
// 建立新版本python链接
ln -s /usr/local/python27/bin/python /usr/bin/python
// 于是现在python -V:
Python 2.7.6
// 修改yum脚本的声明头: /usr/bin/yum
/usr/bin/python ----> /usr/bin/python2.6
// Erlang 安装
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
// 下载Erlang:http://www.erlang.org/download/otp_src_R16B02.tar.gz,解压
// 配置安装
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
// 编译安装
make && make install
// 配置环境变量, vim /etc/profile, 添加:
ERLANG_HOME=/usr/local/erlang
PATH=$ERLANG_HOME/bin:$PATH
export ERLANG_HOME
export PATH
source /etc/profile
输入命令erl检验是否安装成功
// rabbitmq-server安装:
// 依赖包xmlto
yum install xmlto
// 下载,解压之
http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.5/rabbitmq-server-3.1.5.tar.gz
// 编译
make
// 安装
make install TARGET_DIR=/opt/rabbitmq SBIN_DIR=/opt/rabbitmq/sbin MAN_DIR=/opt/rabbitmq/man
安装web插件管理界面
mkdir /etc/rabbitmq
./rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
mochiweb
webmachine
rabbitmq_web_dispatch
amqp_client
rabbitmq_management_agent
rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@rabbitmqmaster sbin]# ls /etc/rabbitmq
enabled_plugins
// 启动rabbitmq
./rabbitmq-server start
// 有可能报主机名找不到的错误,
vim /etc/hosts
127.0.0.1 localhost ${hostName}
1
guest/guest 登录localhost:15672
可参考:https://my.oschina.net/indestiny/blog/192313
上一篇: c语言读写二进制文件
下一篇: Redis数据库的安装配置方