[英]Fiware iot agent error on creating service and registration
i am a fiware user and i have created an iot agent on an ubuntu 14.04 empty vm and when i send a create service or a device registration request , i get an error. 我是一个fiware用户,我在ubuntu 14.04空vm上创建了一个iot代理,当我发送创建服务或设备注册请求时,我收到一个错误。 And i've made sure that the ports listen properly and i've also allowed tcp connection on the port 4061. and also get an error whenever i send the reuest .
我确保端口正确监听,并且我还允许端口4061上的tcp连接。每当我发送reuest时也会收到错误。
here's the create service request 这是创建服务请求
(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
and this is the error which i get . 这是我得到的错误。
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
Although i have allowed the port 4061 through the firewall by the command sudo ufw allow 4061 虽然我通过命令sudo ufw allow 4061允许端口4061通过防火墙
必须在安全组(云门户)中添加安全规则开放端口4061。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.