WebSocket을 통해 연결을 거부하지만 여기 WebSocket을 을 통해 연결을 거부하는 것은 내 conf의 파일입니다mosquitto (MQTT 브로커가) 나는 mosquitto 브로커를 설정 한
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /var/run/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
listener 1883 0.0.0.0
listener 8008 0.0.0.0
protocol websockets
나는 어떤 conf의이 없습니다 내가 얻을 자바 스크립트 클라이언트 PAHO를 사용 conf.d
에서 나는 OS
으로 데비안 제시를 사용하고 방법에 의한 ERR_CONNECTION_REFUSED
------- ------------------------------ EDIT 1 ------------------ ----------------
iptables를 낮추었지만 여전히 작동하지 않습니다. (포트 1883에) 노력하고 있습니다 연결하는 일반적인 방법 가 여기에 내가 mosquitto를 시작할 때 출력
1477788244: mosquitto version 1.4.10 (build date Thu, 25 Aug 2016 10:12:09 +0100) starting
1477788244: Using default config.
1477788244: Opening ipv4 listen socket on port 1883.
1477788244: Opening ipv6 listen socket on port 1883.
브로커와 다른 컴퓨터 또는 다른 컴퓨터에서 연결을 시도하고 있습니까? 또한 방화벽이 활성화되어 있습니까? – hardillb
정상적인 방법 (websocket이 아님)이 작동하고 있기 때문에 테스트 머신이 브로커 1과 다르다는 것을 알았습니다. iptables가 블로킹인지 확인하려고합니다. –
iptables를 낮추었지만 여전히 작동하지 않습니다. –