Replies: 3 comments
-
|
Did websocket connection succeed when you try to use it? I am getting this error |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Very great tutorial. you are the man. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
You made an excellent tutorial that should have come with the package, thanks, the original tutorial is very bad or for expert users. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There wasn't a clear guide of how to install and run this tracker from scratch. I thought it would be helpful for others.
Installing Nodejs
sudo yum install epel-release
curl -sL https://rpm.nodesource.com/setup_12.x | bash -
sudo yum install nodejs
node -v
Installing Git and cloning Repository
yum install git
cd /usr/local
git clone https://github.com/Novage/wt-tracker.git
Installing wt-tracker
cd wt-tracker/
npm install
npm run build
#uWebSockets version v15.11.0 needed, so we are reinstalling uWebSockets
npm uninstall uWebSockets.js
npm install uNetworking/uWebSockets.js#v15.11.0
Creating config.json
vi /usr/local/wt-tracker/config.json
Adding firewall rules
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --reload
firewall-cmd --zone=public --list-all
Creating Service
vi /etc/systemd/system/wt-tracker.service
Activating and Enabling Service
systemctl enable wt-tracker
systemctl restart wt-tracker
systemctl status wt-tracker
Increasing Open File Limit for Service
#This changes will fix
Error: EMFILE: too many open files, uv_resident_set_memorymkdir /etc/systemd/system/wt-tracker.service.d/
vi /etc/systemd/system/wt-tracker.service.d/limits.conf
systemctl daemon-reload
systemctl restart wt-tracker.service
Checking Stats
https://127.0.0.1/stats.json
Beta Was this translation helpful? Give feedback.
All reactions