Apache-apollo服务器搭建

MQTT + Apache-apollo服务器的搭建 MQTT + Apache-apollo服务器的搭建 作者:爱编程的小金毛球球 日期:2019.9.16 MQTT(消息队列遥测传输)是ISO 标准(ISO/IEC PRF 20922)下基于发布/订阅范式的消息协议。它工作在 TCP/IP协议族上,是为硬件性能低下的远程设备以及网络状况糟糕的情况下而设计的发布/订阅型消息协议,为此,它需要一个消息中间件。 MQTT是一个基于客户端-服务器的消息发... 阅读详情


1.首先从http://activemq.apache.org/apollo/download.html官网上下载windows对应的apollo版本,本文下载的是apache-apollo-1.7.1-windows-distro.zip 版本。windows的版本为win10,JDK版本1.8。

2.解压到C:\apache-apollo下,此时会多出一个apache-apollo-1.7.1文件夹。

3.然后以管理员的身份运行cmd,进入到如下目录C:\apache-apollo\apache-apollo-1.7.1\bin,如下图所示: 
这里写图片描述

4.然后就是要创建broker,这里是创建在C:\apache-apollo\broker 
的目录下,执行如下命令:apollo create myapollo C:\apache-apollo\broker 
这里写图片描述

5.broker创建成功的提示如下图所示: 
这里写图片描述

6.创建完broker之后就是要运行apollo,进入C:\apache-apollo\broker\bin目录下,执行如下命令:apollo-broker run 
这里写图片描述

7.apollo运行成功的提示,如下图所示: 

8.最后打开浏览器,输入网址http://127.0.0.1:61680/,即可看到如下页面,默认账户: admin, 密码: password这里写图片描述

9.登录成功之后的页面,控制台页面如下图所示 : 
这里写图片描述


二元交叉熵:分类模型概率校准的数学根基 二元交叉熵(BCE)是二分类任务中实现概率校准的核心损失函数,其本质源于最大似然估计与KL散度,确保模型输出具备真实可解释的概率意义。相比均方误差(MSE)或Hinge Loss,BCE强制优化预测分布与真实伯努利分布之间的信息差异,使p=0.8真正对应约80%的正例发生率,支撑风控、医疗、推荐等高信度场景的阈值决策。它不只影响训练收敛,更决定部署后概率的业务可信度——这正是Focal Loss等变体无法替代其基础地位的根本原因。理解BCE,就是理解分类模型如何从‘打分器’进化为‘概率契约签署者’。 阅读详情

相关推荐

海思HiMPP开发避坑指南:MMZ内存与系统内存傻傻分不清?一个例子讲透

本文深入解析海思HiMPP开发中MMZ内存与系统内存的关键差异与应用场景,帮助开发者避免常见的内存混淆问题。通过实际案例和性能对比,详细介绍了MMZ内存的特性和优化策略,提升多媒体处理效率。

weixin_30772105的博客 468

apache-Apollo安装使用(windows)

1.windows 1.1 下载 1.7.1 下载地址: http://archive.apache.org/dist/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-windows-distro.zip 全版本下载地址: http://archive.apache.org/dist/activemq/activemq-apollo/ 1.2 安装 打开cmd,进入bin目录后,执行这个命令 (需要自己调整到自己的对应目录,会在对应位置生成文件)

草叶儿的博客 1946

Linux下离线安装Google Chrome

目录背景一、下载并安装Google Chrome二、下载并安装依赖包1.libvulkan.so.1()(64bit)2.读入数据总结 背景 项目中服务器被要求不能连接外网,不能直接联网安装,所以需要下载Google Chrome安装包和依赖包,然后离线安装。 linux下步骤都一样,不管ubuntu还是centos只是需要下载对应系统的文件包即可。 本机系统:CentOS 7 一、下载并安装Google Chrome 官方下载地址http://www.google.cn/chrome/browser/d

ancientapesman的博客 1万+

Apollo配置中心搭建

JavaApollo服务端:1.8+Apollo客户端:1.7+由于需要同时运行服务端和客户端,所以建议安装Java 1.8+。MySQL:版本要求:5.6.5+Apollo的表结构对timestamp 使用了多个default声明,所以需要5.6.5以上版本。

SHI940637335的博客 1204

Python爬虫实战:医院科室排班智能采集系统 - 从零构建合规且高效的医疗信息爬虫(附CSV导出 + SQLite持久化存储)!

我长期专注 Python 爬虫工程化实战,主理专栏 👉 《Python爬虫实战》:从采集策略到反爬对抗,从数据清洗到分布式调度,持续输出可复用的方法论与可落地案例。内容主打一个“能跑、能用、能扩展”,让数据价值真正做到——抓得到、洗得净、用得上。

喵手的博客 1301

详解YOLOv8网络结构/环境搭建/数据集获取/训练/推理/验证/导出/部署

YOLO(You Only Look Once)系列算法因其高效、准确等特点而备受瞩目。由2023年Ultralytics公司发布了YOLO的最新版本YOLOv8是结合前几代YOLO的基础上的一个融合改进版。本文YOLOv8网络结构/环境搭建/数据集获取/训练/推理/验证/导出/部署,从网络结构的讲解从模型的网络结构讲解到模型的部署都有详细介绍,同时在本专栏中还包括YOLOv8模型系列的改进包括个人提出的创新点,传统卷积、注意力机制、损失函数的修改教程,能够帮助你的论文获得创新点。

Snu77的博客 8万+

Windows搭建Apollo MQTT服务器

转发:Windows搭建Apollo MQTT服务器 1.下载 Java JDK 安装包 ( apollo 依赖 Java 环境) 下载链接:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.安装 java JDK 安装完后设置JAVA_HOME环境变量 3.下载 apollo 安装包 下

明耀的博客 1089

【MATLAB】工业传送带速度闭环控制与张力联合仿真

本文基于MATLAB/Simulink平台,构建了工业传送带速度闭环控制与张力联合仿真系统。通过搭建驱动模块、机械传动模块、检测模块和控制模块,实现了速度与张力的协同控制。采用双PID调节器分别整定速度与张力参数,经联合调试后系统性能良好:速度跟踪误差小于±0.03m/s,张力波动控制在±30N内,负载扰动恢复时间仅0.3秒。研究提供了从建模到参数优化的完整工程方案,可直接应用于课程设计或工业实践,有效解决了传送带运行中速度偏差与张力波动的协同控制难题。

unber的博客 78

windows环境下apache-apollo服务器搭建及发布订阅测试

查证了一些资料之后,发现apache-apollo服务器使用的人还是挺多的,资料也比较齐全,所以直接选择apache-apollo了,具体性能如何,先用起来再说吧: 1、下载apache-apollo http://activemq.apache.org/apollo/download.html 2、配置JDK环境 这里不详述,网上资料很多,自行百度JD...

weixin_30482383的博客 332

一文学会python基础知识

1. python 运行环境 1.1 脚本式环境 1.2 交互式环境 2. python 注释 3. 变量及变量命名 4. 关键词 BIFS 5. 标准操作符 6. 条件判断 7. 循环 8. python 数据类型 9. python 序列 9.1 序列-字符串(str) 9.2 序列-列表 9.3 序列-元组 10. 字典 11. 集合 12. python内存管理及可变、不可变对象 13. 函数 13.1 函数参数 13.2 return and yiled(生成器) 13.3 参数传递处理 ...

weixin_43178406的博客 26万+

ssd训练自己的数据集

基于SSD实现目标检测(训练自己的数据集)

reset2021的博客 6804

MQTT 服务器 Apache ActiveMQ Apollo 搭建

介绍 http://activemq.apache.org/apollo/index.html ActiveMQ's next generation of messaging ActiveMQ Apollo is a faster, more reliable, easier to maintain messaging broker built from the foundations ...

Keep Learning , Keep Improving ! 4198

yolov26改进 | Neck/颈部创新篇 | 独创HFPN利用分层特征融合块HFFB模块融合多层次特征改进yolov26(全网独家创新)

本文提出了一种创新的分层特征融合模块HFFB(Hierarchical Feature Fusion Block)来改进YOLOv26的neck部分,构建了名为HFPN的新型特征金字塔网络。该模块通过三分支结构融合局部特征(CNN提取)、全局特征(Swin Transformer提取)和中间特征,并包含空间注意力(SA)、通道注意力(CA)和残差反向MLP(IRMLP)等组件来优化特征融合效果。实验表明,该方法能针对不同尺度目标(大/中/小)进行自适应检测,可根据具体数据集需求选择不同配置。文章详细提供了核

Snu77的博客 485

MQTT笔记之Windows 下 使用Apache Apollo 搭建MQTT 服务器

Apache-Apollo 下载: http://activemq.apache.org/apollo/download.html JAVA JDK 下载 http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html 1. 安装JAVA JDK(如果以前安装过,跳过) 安装完成后,...

jiaowademeng的博客 1853

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

windows下apache-apollo-mqtt服务器搭建及mqtt.fx测试

windows环境下apache-apollo服务器搭建及发布订阅测试

zterrorblade的博客 239

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

MacOS 下搭建Mqtt服务器

目前主流的MQTT协议的服务器搭建方式有Eclipse Mosquitto这样的代理工具软件,还有一些云端的代理服务器。这里介绍的是自建Apache Apollo代理服务器,模拟Mqtt的数据传输 一、 jdk环境安装 这里不多赘述,说几个碰到的问题。Mac下安装jdk后,运行指令 java -version是可以看到jdk版本的,因为是使用Installer安装的jdk,JAVA_HOME的配置我之前竟然是在/usr/bin下,运行apollo的时候提示 Error: JAVA_H...

weixin_38469592的博客 2085

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

appollo消息服务器,搭建Apache apollo消息队列服务、简单访问

官网:http://activemq.apache.org/apollo/index.html环境:ubuntu 16.041.安装好jdk2.下载解压wgethttp://mirrors.hust.edu.cn/apache/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gztar -zxvfapache...

weixin_30155853的博客 1598

MQTT学习(一)--使用Apache Apollo在Windows环境下搭建MQTT服务器

最近在学习MQTT协议,至于MQTT协议是什么这里不再多讲,因为这篇文章的前提就是假设当你看到这篇文章时至少已经知道什么是MQTT协议了。因为相当一部分第一次接触MQTT协议的开发人员之前可能都是在Windows环境下工作,所以本文主要内容就是介绍使用Apache Apollo在Windows环境下搭建MQTT Server。 下载Apache Apollo 官网下载地址如下: http://...

lordwish的专栏 4655

Windows搭建MQTT服务器

Window下mqtt服务器搭建,MQTT.fx客户端工具使用实例

qq_42315062的博客 2139

mqtt环境搭建(apache-apollo服务器+mosquitto中间件+paho测试)Windows系统搭建

1.先安装apache-apollo(Windows) 安装apollo服务器必须要先安装JDK 先从官网下载对应的apollo版本,官网在下面,我下的是apache-apollo-1.7.1-windows-distro.zip ,电脑是win10,JDK1.8 http://activemq.apache.org/apollo/download.html 官网地址 把压缩包解压到C:\apa...

weixin_42933046的博客 782

快速搭建MQTT服务器(MQTTnet和Apache Apollo)

前言 MQTT协议是IBM开发的一个即时通讯协议,有可能成为物联网的重要组成部分,http://mqtt.org/。 MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/s...

weixin_30248399的博客 135

使用Apollo在Window上搭建MQTT服务器

最近项目中需要用到mqtt与设备做一个简单的通讯,在网上看了下mqtt相关的东西和一些前辈的文章,着手开搞~ 了解MQTT MQTT(Message Queuing Telemetry Transport,消息队列遥测传输协议),是一种基于发布/订阅(publish/subscribe)模式的"轻量级"通讯协议,该协议构建于TCP/IP协议上,由IBM在1999年发布。MQTT最大优点在于,...

qq_35532751的博客 466

MQTT 服务器 Apache ActiveMQ 搭建

主页 http://activemq.apache.org/ 下载 http://activemq.apache.org/download.html http://activemq.apache.org/activemq-5155-release.html 解压到 D:\DevTools\apache-activemq-5.15.5-bin cmd 启动: cd /d...

Keep Learning , Keep Improving ! 9637

Android开发之利用MQTT协议实现消息的即时推送(1)Apache apollo服务器搭建与MQtt Client搭建

Android开发之利用MQTT协议实现消息的即时推送,最近老师要求我用MQTT写一个安卓的app去连接连接老师的服务器然后传输数据,为此我特地放弃本身在开发中的融云的聊天模块跑去开发MQTT,为此特地学习了一下Xutil3,然后耗时1周途中我还有其他事情需要去做就这样我用了两周时间搞定了老师给的那个mqtt但是测试就非常麻烦了毕竟我写完app以后都是大半夜而测试在早上的话就有些麻烦,所以我就打算...

入佛门六根不净,入商场狼性不足 3172
上一篇: 银联Pos终端签到、签退、批结算、批上送
下一篇: 2020-08-27
pecke
博客等级 码龄17年 5粉丝 47原创
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值