Inštalácia speedtest servera OOKLA
Instalacia a nastavenie servera:
Instalacia OOKLA daemona:
https://support.ookla.com/hc/en-us/articles/234578528
Stiahnutie a instalacia:
wget https://install.speedtest.net/ooklaserver/ooklaserver.sh
chmod a+x ooklaserver.sh
./ooklaserver.sh install
Po nainštalovaní sa automaticky spusti server. Automatické spustenie je možne urobiť bud pomocou rc.local alebo vytvorím vlastnej služby cez systemd.
nano /usr/lib/systemd/system/ookla.service
[Unit]
Description=Ookla serices
DefaultDependencies=no
After=local-fs.target
[Service]
Type=forking
RemainAfterExit=yes
ExecStart=/home/ookla-server/ooklaserver.sh start
ExecStop=/home/ookla-server/ooklaserver.sh stop
[Install]
WantedBy=multi-user.target
Povolenie sluzby:
systemctl enable ookla.service
Na začiatok štartovacieho skriptu je potrebne pridať cestu umiestnenia skriptu:
nano ooklaserver.sh
cd /home/ookla-server
Dokumentácia ku config súboru:
https://support.ookla.com/hc/en-us/articles/234577948
Úprava config
nano OoklaServer.properties
Pridať legovanie do súboru:
logging.loggers.app.name = Application
logging.loggers.app.channel.class = FileChannel
logging.loggers.app.channel.pattern = %Y-%m-%d %H:%M:%S [%P - %I] [%p] %t
logging.loggers.app.channel.path = ${application.dir}/ooklaserver.log
logging.loggers.app.level = information
Pridanie crossdomain
OoklaServer.allowedDomains = *.ookla.com,*.speedtest.net
Nastavenie logrotate:
nano /etc/logrotate.d/ookla
#ookla logrotate
/home/ookla-server/ooklaserver.log
{
rotate 7
daily
missingok
notifempty
delaycompress
compress
}
https://support.ookla.com/hc/en-us/articles/234578548
Pridanie WEB súborov do root priečinka web serveru stiahnut a rozbaliť:
wget http://install.speedtest.net/httplegacy/http_legacy_fallback.zip
Otestovanie servera:
https://www.ookla.com/host-tester
Dokumentácia k testeru:
https://support.ookla.com/hc/en-us/articles/234578708-Using-the-Server-Tester