Deepstream.io
Installation
Centos
Goto Deepstream.io Gitlab, find the latest version. Download the latest version.
wget https://github.com/deepstreamIO/deepstream.io/releases/download/v5.2.4/deepstream.io-linux-5.2.4.tar.gz
If wget command not found
yum install wget -y
To test, run. This
./deepstream start
If error found, go to trouble shoot section.
To create deepstream as service
sudo ./deepstream service add --service-name deepstream-1 -c ~/conf/config.yml -l ~/var/log/
To start deepstream service
sudo service deepstream-1 status
To check deepstream status
$ sudo service deepstream-1 status
Redirecting to /bin/systemctl status deepstream-1.service
● deepstream-1.service - deepstream-1
Loaded: loaded (/etc/systemd/system/deepstream-1.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2021-06-17 03:58:38 UTC; 24s ago
Main PID: 19854 (deepstream)
CGroup: /system.slice/deepstream-1.service
├─19854 /home/centos/deepstream daemon -c /home/centos/conf/config.yml
└─19862 deepstream server
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | telemetry ready: Deepstream Telemetry
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | authentication ready: Open Authentication
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | Listening for http connections on 0.0.0.0:6020
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | Listening for health checks on path /health-check
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | httpService ready: NodeJS HTTP Service
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | connectionEndpoint ready: Binary WebSocket Connection Endpoint
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | connectionEndpoint ready: WS Text Protocol Connection Endpoint
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | connectionEndpoint ready: WS Text Connection Endpoint
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | connectionEndpoint ready: HTTP connection endpoint
Jun 17 03:58:39 ip-172-31-32-191.ap-southeast-1.compute.internal deepstream[19854]: INFO | Deepstream started
Trouble shoot
If error below show.
./deepstream: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./deepstream)
./deepstream: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./deepstream)
./deepstream: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./deepstream)
Run command below to check
$ strings /lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH
If the library is not available, run command below
bash
wget https://repo.anaconda.com/archive/Anaconda3-2019.07-Linux-x86_64.sh
sh Anaconda3-2019.07-Linux-x86_64.sh
An installation screen will prompt, ENTER to proceed.
After installation done
$ cd /lib64
$ sudo mv libstdc++.so.6 libstdc++.so.6.bak
$ sudo ln -s /home/centos/anaconda3/lib/libstdc++.so.6.0.26 libstdc++.so.6
$ ls -l libstd*
lrwxrwxrwx. 1 root root 46 Jun 17 01:52 libstdc++.so.6 -> /home/centos/anaconda3/lib/libstdc++.so.6.0.26
-rwxr-xr-x. 1 root root 995840 Sep 30 2020 libstdc++.so.6.0.19
lrwxrwxrwx. 1 root root 19 Jun 17 01:29 libstdc++.so.6.bak -> libstdc++.so.6.0.19