C
C
chelkaz2017-03-10 19:58:42
Socket.io
chelkaz, 2017-03-10 19:58:42

How to run Centrifugal?

If I run:
# centrifugo --port=8000 --config=config.json --admin --web I
see that the port is busy...

[W]: 2017/03/10 19:37:49 No config file found
[I]: 2017/03/10 19:37:49 Config path: /root/config.json
[I]: 2017/03/10 19:37:49 Centrifugo version: 1.7.1
[I]: 2017/03/10 19:37:49 Process PID: 1986
[I]: 2017/03/10 19:37:49 Engine: In memory – single node only
[I]: 2017/03/10 19:37:49 GOMAXPROCS: 1
[I]: 2017/03/10 19:37:49 Starting http server
[I]: 2017/03/10 19:37:49 SockJS url: //cdn.jsdelivr.net/sockjs/1.1/sockjs.min.js
[I]: 2017/03/10 19:37:49 Start serving raw websocket, SockJS, API, admin endpoints on :8000
[F]: 2017/03/10 19:37:49 ListenAndServe: listen tcp :8000: bind: address already in use

But I look who is listening and I see:
COMMAND    PID          USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
...
centrifug  158    centrifugo    4u  IPv6 3128123121      0t0  TCP *:8000 (LISTEN)
...

And the link site.ru:8000 The page does not open - ERR_CONNECTION_REFUSED

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Evgrafovich, 2017-03-11
@chelkaz

Well, you know better what kind of copy of the centrifuge is spinning on your server. you can kill it, you can run it on a different port (well, take this into account later in the application and when setting up nginx, of course), plus it’s not clear whether you are connecting the correct config, it cannot find it specified in the launch command and takes it from a completely different place

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question