Customers
User information
 Loading ...
Show article in Knowledge Base

 Install Centrifugo Export knowledge base Export     SubscribeSubscribe      Show article info

Windows

  1. Download centrifugo for your platform https://github.com/centrifugal/centrifugo/releases and unpack to any directory
  2. (Optional, but recommended) Setup Centrifugo as a Windows Service
    1. Download Windows Service Wrapper https://github.com/winsw/winsw/releases/latest
      • Download the WinSW.NET4.exe version
    2. Copy WinSW.NET4.exe into the Centrifugo directory, rename to centrifugo_svc.exe
    3. Create config named centrifugo_svc.xml
    4. Input the below content:

      <service>

      <id>centrifugo</id>
      <name>centrifugo</name>
      <description>Centrifugo Push Server</description>
      <executable>$YOUR_PATH_TO_CENTIFUGO\centrifugo.exe</executable>
      <startargument>--config=config.json</startargument>
      <startargument>--admin</startargument>
      <stopexecutable>taskkill</stopexecutable>
      <stopargument>/f</stopargument>
      <stopargument>/fi</stopargument>
      <stopargument>"imagename eq centrifugo.exe"</stopargument>

      </service>

    5. Edit $YOUR_PATH_TO_CENTIFUGO from above to match your installation.
      (We recommend to not use the version number in the folder name for centrifugo so it's easy to upgrade
      centrifugo in the future without having to modify the path above and reinstall the service).
    6. Open a CMD window as Administrator and navigate into Centrifugo directory
    7. Install as a service by typing: centrifugo_svc.exe install
    8. Start through Windows Services

 

Ubuntu

1) Add centrifugo repository:
curl -s https://packagecloud.io/install/repositories/FZambia/centrifugo/script.deb.sh | sudo bash
2) Install centrifugo package: 
sudo apt install centrifugo

3) Configuration file is located in the /etc/centrifugo/config.json, change properties if needed.

4) Make service running on startup:

sudo systemctl enable centrifugo

 

It is recommended to not have centrifugo opened to internet, better having it behind the proxy server, for example nginx. 

 

 

Next step: Configure Centrifugo


User comments
 Loading ...