Mirror of github.com/statbate/docs
Find a file
2022-10-28 20:08:54 +03:00
img/28-10-2022 upload img 2022-10-28 20:08:33 +03:00
install Update mariadb-myrocks.md 2022-09-07 17:45:35 +03:00
.gitignore update 2022-07-27 11:48:27 +03:00
LICENSE update 2022-07-27 11:48:27 +03:00
README.md update 2022-07-27 11:48:27 +03:00

apt-get update
apt-get upgrade
apt-get install htop bwm-ng strace lsof iotop git build-essential screen
adduser --disabled-login stat
git clone https://github.com/poiuty/statbate.git

mkdir /home/stat/go
mkdir /home/stat/php
mkdir /home/stat/python
mkdir /var/www/statbate

cp -r /statbate/app /home/stat/go
cp -r /statbate/cli/*.php /home/stat/php
cp -r /statbate/cli/*.py /home/stat/python
cp -r /statbate/html/* /var/www/statbate

chown -R stat:stat /home/stat
chown -R www-data:www-data /var/www/statbate
  1. Mariadb
  2. ClickHouse
  3. Nginx
  4. PHP
  5. Python
  6. Redis
  7. App
  8. Add cron
# nano /etc/cron.d/php

*/10 * * * *  stat   php    /home/stat/php/start2.php  > /home/stat/php/log.txt 2>&1
* * * * *  www-data   php    /var/www/statbate/root/index.php  >/dev/null 2>&1

# systemctl restart cron
# systemctl status cron