为设备创建服务和注册时出现 Fiware 错误
Fiware error on creating service and registration for a device
我是一名 fiware 用户,我在 ubuntu 14.04 空虚拟机上创建了一个物联网代理,当我发送创建服务或设备注册请求时,我收到错误消息。而且我已经确保端口可以正确监听并且我还允许端口 4061 上的 tcp 连接。并且每当我发送请求时也会收到错误消息。
这是创建服务请求
(curl -H 'content-type: application/json' -H 'fiware-service: bla770' -H 'fiware-servicepath: /howtobla770' -X POST 'http://217.172.12.243:4061/iot/services' -d @- ) << EOF
{
"services": [
{
"apikey": "api70",
"token": "token",
"cbroker": "http://147.27.60.58:1026",
"resource": "/iot/d",
"entity_type": "thing"
}
]
}
EOF
这是我得到的错误。
connect to 217.172.12.243 port 4061 failed: Connection timed out
* Failed to connect to 217.172.12.243 port 4061: Connection timed out
虽然我已经通过命令允许4061端口通过防火墙
sudo ufw 允许 4061
sudo ufw allow 4061
那么,请问如何解决这个错误?
我认为您可以通过部署像 Cepheus 这样的预配置映像来解决这个问题,它将允许您使用端口 8080 和 8081 并且您可以将您的物联网代理配置为通过 config.js 文件
中的更改进行监听
我是一名 fiware 用户,我在 ubuntu 14.04 空虚拟机上创建了一个物联网代理,当我发送创建服务或设备注册请求时,我收到错误消息。而且我已经确保端口可以正确监听并且我还允许端口 4061 上的 tcp 连接。并且每当我发送请求时也会收到错误消息。
这是创建服务请求
(curl -H 'content-type: application/json' -H 'fiware-service: bla770' -H 'fiware-servicepath: /howtobla770' -X POST 'http://217.172.12.243:4061/iot/services' -d @- ) << EOF
{
"services": [
{
"apikey": "api70",
"token": "token",
"cbroker": "http://147.27.60.58:1026",
"resource": "/iot/d",
"entity_type": "thing"
}
]
}
EOF
这是我得到的错误。
connect to 217.172.12.243 port 4061 failed: Connection timed out
* Failed to connect to 217.172.12.243 port 4061: Connection timed out
虽然我已经通过命令允许4061端口通过防火墙 sudo ufw 允许 4061
sudo ufw allow 4061
那么,请问如何解决这个错误?
我认为您可以通过部署像 Cepheus 这样的预配置映像来解决这个问题,它将允许您使用端口 8080 和 8081 并且您可以将您的物联网代理配置为通过 config.js 文件
中的更改进行监听