技术交流QQ群【JAVA,.NET,BigData,AI】:170933152

很简单,先安装jdk,然后下载,解压,启动,访问ok

下载:

[root@localhost usr]# wget http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz
--2019-03-29 21:45:50--  http://archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz
Resolving archive.apache.org (archive.apache.org)... 163.172.17.199
Connecting to archive.apache.org (archive.apache.org)|163.172.17.199|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://59.80.44.98/archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz [following]
--2019-03-29 21:45:50--  http://59.80.44.98/archive.apache.org/dist/activemq/5.14.5/apache-activemq-5.14.5-bin.tar.gz
Connecting to 59.80.44.98:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 54294367 (52M) [application/x-gzip]
Saving to: ‘apache-activemq-5.14.5-bin.tar.gz’100%[=========================================================================================================================================>] 54,294,367  2.56MB/s   in 25s    
[root@localhost usr]# mv apache-activemq-5.14.5-bin.tar.gz /opt
[root@localhost opt]# cp apache-activemq-5.14.5-bin.tar.gz /usr/activemq

解压

[root@localhost activemq]# tar zxvf apache-activemq-5.14.5-bin.tar.gz

重新命名,看着舒服:

[root@localhost activemq]# mv apache-activemq-5.14.5 activemq

进入bin目录启动:

[root@localhost activemq]# cd activemq/
[root@localhost activemq]# ll
total 15888
-rwxr-xr-x 1 root root 16211254 Apr 11  2017 activemq-all-5.14.5.jar
drwxr-xr-x 5 root root      147 Mar 29 21:49 bin
drwxr-xr-x 2 root root     4096 Mar 29 21:49 conf
drwxr-xr-x 2 root root       26 Mar 29 21:49 data
drwxr-xr-x 2 root root       76 Mar 29 21:49 docs
drwxr-xr-x 7 root root       71 Apr 11  2017 examples
drwxr-xr-x 6 root root     4096 Mar 29 21:49 lib
-rw-r--r-- 1 root root    40580 Apr 11  2017 LICENSE
-rw-r--r-- 1 root root     3334 Apr 11  2017 NOTICE
-rw-r--r-- 1 root root     2610 Apr 11  2017 README.txt
drwxr-xr-x 6 root root       95 Mar 29 21:49 webapps
drwxr-xr-x 3 root root       18 Mar 29 21:49 webapps-demo

启动吧:

[root@localhost bin]# ./activemq start
INFO: Loading '/usr/activemq/activemq//bin/env'
INFO: Using java '/lib/jvm/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/usr/activemq/activemq//data/activemq.pid' (pid '1447')
[root@localhost bin]# ps -ef|grep activemq
root       1447      1 86 23:02 pts/0    00:00:12 /lib/jvm/bin/java -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/usr/activemq/activemq//conf/login.config -Dcom.sun.management.jmxremote -Djava.awt.headless=true -Djava.io.tmpdir=/usr/activemq/activemq//tmp -Dactivemq.classpath=/usr/activemq/activemq//conf:/usr/activemq/activemq//../lib/: -Dactivemq.home=/usr/activemq/activemq/ -Dactivemq.base=/usr/activemq/activemq/ -Dactivemq.conf=/usr/activemq/activemq//conf -Dactivemq.data=/usr/activemq/activemq//data -jar /usr/activemq/activemq//bin/activemq.jar start
root       1490   1312  0 23:02 pts/0    00:00:00 grep --color=auto activemq
[root@localhost bin]# http://192.168.0.110:8161/admin/

浏览器测试:

http://192.168.136.110:8161/admin/

然后,admin admin 用户名密码

就进去了。

如果有防火墙的话,关闭一下防火墙,或者设置防火墙规则:

防火墙的设置添加8161和61616端口号:

firewall-cmd --zone=public --add-port=8161/tcp --permanent (--permanent永久生效,没有此参数重启后失效)

重新载入 firewall-cmd --reload

查看端口是否设置成功:firewall-cmd --zone=public --list-ports

9、最后验证结果输入http://ip地址:8161/admin   用户名:admin 密码:admin

主意防火墙,一定要关闭或者配置规则要不然,嗝屁...

1、firewalld的基本使用

启动: systemctl start firewalld

关闭: systemctl stop firewalld

查看状态: systemctl status firewalld

开机禁用  : systemctl disable firewalld

开机启用  : systemctl enable firewalld

2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。

启动一个服务:systemctl start firewalld.service
关闭一个服务:systemctl stop firewalld.service
重启一个服务:systemctl restart firewalld.service
显示一个服务的状态:systemctl status firewalld.service
在开机时启用一个服务:systemctl enable firewalld.service
在开机时禁用一个服务:systemctl disable firewalld.service
查看服务是否开机启动:systemctl is-enabled firewalld.service
查看已启动的服务列表:systemctl list-unit-files|grep enabled
查看启动失败的服务列表:systemctl --failed

3.配置firewalld-cmd

查看版本: firewall-cmd --version

查看帮助: firewall-cmd --help

显示状态: firewall-cmd --state

查看所有打开的端口: firewall-cmd --zone=public --list-ports

更新防火墙规则: firewall-cmd --reload

查看区域信息:  firewall-cmd --get-active-zones

查看指定接口所属区域: firewall-cmd --get-zone-of-interface=eth0

拒绝所有包:firewall-cmd --panic-on

取消拒绝状态: firewall-cmd --panic-off

查看是否拒绝: firewall-cmd --query-panic

那怎么开启一个端口呢

添加

firewall-cmd --zone=public --add-port=80/tcp --permanent    (--permanent永久生效,没有此参数重启后失效)

重新载入

firewall-cmd --reload

查看

firewall-cmd --zone= public --query-port=80/tcp

删除

firewall-cmd --zone= public --remove-port=80/tcp --permanent

ActiveMq工作笔记002---Centos7.3安装ActiveMq相关推荐

  1. 学习笔记(1)centos7 下安装nginx

    学习笔记(1)centos7 下安装nginx 这里我是通过来自nginx.org的nginx软件包进行安装的. 1.首先为centos设置添加nginx的yum存储库 1.通过vi命令创建一个rep ...

  2. linux最小安装桌面,Linux工作环境:CentOS7最小安装+Xfce桌面环境

    ref: https://blog.csdn.net/smstong/article/details/44802989 3.1 执行CentOS7 最小安装 去官网下载CentOS-7.0-1406- ...

  3. Linux工作笔记031---Centos7.3下安装tomcat

    JAVA技术交流QQ群:170933152 后来发现安装很简单,把安装包,解压,然后 启动就可以了,如果需要改端口,就去conf中的server.xml中去改一下就可以了 下面的步骤有点啰嗦 ---- ...

  4. ActiveMq工作笔记001---Windows10下安装ActiveMq

    技术交流QQ群[JAVA,C++,Python,.NET,BigData,AI]:170933152 D:\ProgramFiles\apache-activemq-5.15.9 apache-act ...

  5. npm的安装和更新---npm工作笔记002

    然后我们再去安装这个npm,安装npm非常简单,npm是nodejs自带的一个功能,所以我们直接去安装nodejs就可以了. 我们知道什么是nodejs? nodejs,其实就是强化了一下js,我们知 ...

  6. Elasticsearch--Docker安装ES---全文检索引擎ElasticSearch工作笔记002

    然后我们来用docker来安装elasticsearch 这里我们使用vagrant 这个虚拟机,也就是oracle vm搭建的一个red hat系统实现的 这个虚拟机也可以用,VMware也行,但是 ...

  7. ActiveMq工作笔记003---SpringBoot集成ActiveMq_随时更新

    技术交流QQ群[JAVA,C++,Python,.NET,BigData,AI]:170933152 注意:通过下面的例子,可以知道发布订阅者和生产消费者都可以进行消息的发送接受,但是区别是什么呢? ...

  8. Linux工作笔记033---Linux(CentOS7)安装zip、unzip命令

    JAVA技术交流QQ群:170933152 yum install -y unzip zip

  9. 阿群笔记:CentOS7 在线安装 docker 的推荐方法

    yum install -y epel-release && yum install -y epel-release yum install -y yum-utils yum-conf ...

最新文章

  1. 吴恩达Drive.ai因经营困难“卖身”苹果
  2. mysql 创建和删除用户
  3. 一个在Windows下的ping脚本(使用WMI 的Win32_PingStatus 实现)
  4. C# 读取网页源码的三种办法WebClient、WebRequest、HttpWebRequest
  5. java用户的登录图片_Java 如何用 token 做用户登录认证
  6. Vue 导入文件import、路径@和.的区别
  7. linux odbc连接数据库失败,在Linux中使用RODBC连接到SQL Server时出错
  8. markdown文档中利用Mathpix Snip软件插入公式
  9. python 读取特定字符之间数据_python 搜索每一行特定字符串之间的数据,求高人帮忙写人程序...
  10. Java继承结构中类的初始化
  11. 基于BOW模型的图像检索
  12. Fixed-step size(Solver)、Sample time(模块)、Sample time(powergui)三者的辨析
  13. 浅谈Nacos中的CAP
  14. 信息检索2.1书刊资料检索工具--书目note
  15. CSS: 对background: url(“~assets/img/common/collect.svg“) 0 0/14px 14px 的理解
  16. 计算机应用媒体,计算机应用技术与计算机多媒体技术哪个好
  17. 懒人教你用猕猴桃一月饱减16斤_过路老熊_新浪博客
  18. 2022年葡萄糖基甜菊糖市场前景分析及研究报告
  19. 海思HI3516A千兆网卡换百兆网卡配置方法
  20. ie8 阻止java运行_解决IE屏蔽Java Applet问题的方法

热门文章

  1. 5步详解PHP文件上传功能的实现
  2. visual studio 让代码看起来更舒服
  3. 毕设日志——Fast RCNN
  4. kafka原理概念提炼
  5. 快升级 iOS 10.3.1,修补了致命WiFi安全漏洞!
  6. 爬虫库之BeautifulSoup学习(五)
  7. zabbix简介及部署
  8. Adobe Acrobat的安装时出现:服务print spooler启动失败,请确认您有足够权限启动系统服务。解决方法...
  9. 爬虫开发.1爬虫介绍
  10. Xshell批量导入IP地址