在CentOS下,源码安装Erlang:
下载Erlang源码
安装:官网地址,http://www.erlang.org
Java代码
# cd /opt/
# wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
解压:
Java代码
# tar -zxvf otp_src_R15B01.tar.gz
# cd otp_src_R15B01
安装依赖:
Java代码
# yum install build-essential m4
# yum install openssl
# yum install openssl-devel
# yum install unixODBC
# yum install unixODBC-devel
# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
配置configure
Java代码
# ./configure --prefix=/usr/local/erlang --enable-hipe --enable-threads --enable-smp-support --enable-kernel-poll
make
make install
完成之后,设置环境变量
Java代码
vim /etc/profile
ERL_HOME=/usr/local/erlang
PATH=$ERL_HOME/bin:$PATH
export ERL_HOME PATH
完成后保存
Java代码
source /etc/profile
让环境变量立即生效
然后输入erl,出现erlang shell,如下:
Java代码
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.9.1 (abort with ^G)
1>
hipe:支持Erlang编译成本地代码。好处:提高Erlang虚拟机执行代码性能。
参考文献:
[1] http://jinghong.iteye.com/blog/1075165
[2] http://my.oschina.net/hanyu363/blog/29727
[3] http://www.linuxidc.com/Linux/2011-07/39156.htm
rabbitmq启动:
sbin/rabbitmq-server
rabbitmq-server -detached
停止 rabbitmqctl stop
查看状态:rabbitmqctl status
插件安装rabbitmq-plugins enable rabbitmq_management 监控使用
http://www.rabbitmq.com/management.html
@import url(http://www.blogjava.net/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
posted on 2013-04-09 15:20
hellxoul 阅读(254)
评论(0) 编辑 收藏