|
1
2
3
|
?
安装环境
#yum install?gcc?gcc-c++#yum install?zlib zlin-devel |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
?
替换系统默认python2.6-->2.7
下载并解压:#wget 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 -VPython 2.7.6修改yum脚本的声明头:
#vi /usr/bin/yum/usr/bin/python?----> /usr/bin/python2.6
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//?Erlang 安装
#yum -y install?make?gcc?gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
下载解压#wget 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 |
|
1
2
3
4
5
6
7
8
9
|
rabbitmq-server安装:
依赖包xmlto
#yum install?xmlto下载解压
#wget 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 |
|
1
2
3
4
5
6
7
8
9
10
11
12
|
安装web插件管理界面??????????????????????????????????????????????????????????????????????#mkdir?/etc/rabbitmq
#./rabbitmq-plugins enable?rabbitmq_managementThe 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.
#ls /etc/rabbitmq
enabled_plugins默认启动后是不允许远程连接的,如果要远程连接需要配置rabbitmq.config
此文件默认不进行创建,需手动创建,文件需要位于:/etc/rabbitmq下
允许远程连接的配置为:[{rabbit, [{loopback_users, []}]}].
|
|
1
2
3
4
5
|
启动rabbitmq
#rabbitmq-server start如果
报主机名找不到的错误
#vim /etc/hosts127.0.0.1 localhost ${hostName} |
| 1 |
guest/guest?登录localhost:15672
|
原文:http://ailikes.iteye.com/blog/2232083