一、安装JDK
1.查询是否安装JDK
yum list installed|grep jdk
2.如果没有安装JDK,查询YUM安装列表JDK版本,选择版本进行JDK安装
yum list|grep jdk yum install java-1.7.0-openjdk.x86_64
二、安装PHP Stomp扩展
Stomp下载地址:http://pecl.php.net/package/s...
或
wget http://pecl.PHP.net/get/stomp-1.0.5.tgz #下载安装包
tar -zxvf stomp-1.0.5.tgz cd stomp-1.0.5 PHPize ./configure make make install
Can't find PHP headers in /usr/include/PHP The PHP-devel package is required for use of this command.
原因:缺少PHP-devel插件
1.查找yum安装列表,选择版本安装
yum list | grep PHP yum install PHP-devel.x86_64
./configure提示缺少gcc:
yum install gcc
安装完成后在 /etc/PHP.ini 中加入
extension = stomp.so
重启apache
/etc/init.d/httpd restart
二、安装ActiveMQ
ActiveMQ下载地址:http://activemq.apache.org/do...
或
wget http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.14.4/apache-activemq-5.14.4-bin.tar.gz&action=download #下载安装包
tar -zxvf apache-activemq-5.14.4-bin.tar.gz cd apache-activemq-5.14.4-bin bin/activemq start #开启activemq
测试是否成功安装
http://IP:8161/admin/MQ自带的web控制台,。默认用户密码都为admin