W
W
webivan12016-09-24 11:31:03
ISPmanager
webivan1, 2016-09-24 11:31:03

How to run ws server on VPS?

Good afternoon!
There is a vps server on it, a site has deployed another server on the site to work via web sockets, how can I run this server on the server? By krone or is there a more correct way and which one?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2016-09-24
@MAKAPOH

You can use supervisord or a similar program.
To set the program to autorun, you write a simple config, like this:

[program:my_websocket_server]
startsecs=4
user=some_user
directory=/path/to/websocket/working/directory
command=/path/to/websocket/binary
When the server is rebooted, the supervisor restarts your program, if you need to stop or restart it manually, there is a supervisorctl command for this .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question