为设备创建服务和注册时发生Fiware错误

为设备创建服务和注册时发生Fiware错误,fiware,iota,Fiware,Iota,我是fiware用户,在ubuntu 14.04空vm上创建了iot代理,当我发送创建服务或设备注册请求时,我收到一个错误。我已经确保端口正确侦听,并且还允许在端口4061上进行tcp连接。每当我发送请求时,也会收到一个错误 下面是创建服务请求 (curl -H 'content-type: application/json' -H 'fiware-service: bla770' -H 'fiware-servicepath: /howtobla770' -X POST 'http://217

我是fiware用户,在ubuntu 14.04空vm上创建了iot代理,当我发送创建服务或设备注册请求时,我收到一个错误。我已经确保端口正确侦听,并且还允许在端口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
虽然我已经通过命令允许端口4061通过防火墙 sudoufw允许4061

sudo ufw allow 4061

那么,可以做些什么来解决这个错误呢?

我认为您可以通过部署Cepheus这样的预配置映像来解决这个问题,它将允许您使用端口80808081,并且您可以通过更改config.js文件来配置iot代理进行监听

sudo ufw allow 4061