Comandos Server Test
Comandos Server Test
mkdir /usr/local/src/ooklaserver
cd /usr/local/src/ooklaserver
wget https://install.speedtest.net/ooklaserver/ooklaserver.sh
chmod +x ooklaserver.sh
./ooklaserver.sh install
./ooklaserver.sh stop
vim /usr/local/src/ooklaserver/ooklaServer.properties
cp /usr/local/src/ooklaserver/OoklaServer.properties
/usr/local/src/ooklaserver/OoklaServer.properties.default
vim /lib/systemd/system/ooklaserver.service
[Unit]
Description=OoklaServer-SpeedTest
After=network.target
[Service]
User=root
Group=root
Type=simple
RemainAfterExit=yes
WorkingDirectory=/usr/local/src/ooklaserver
ExecStart=/usr/local/src/ooklaserver/ooklaserver.sh start
ExecReload=/usr/local/src/ooklaserver/ooklaserver.sh restart
ExecStop=/usr/local/src/ooklaserver/ooklaserver.sh stop
TimeoutStartSec=60
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target
Alias=speedtest.service
systemctl daemon-reload
systemctl status ooklaserver
systemctl enable ooklaserver
systemctl status ooklaserver
systemctl start ooklaserver
systemctl status ooklaserver
reboot
systemctl status ooklaserver
systemctl status speedtest
---------------------------------------------------
Solución de certificado
Instalemos Certbot, que generará certificados con Let's Encrypt.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing, once your first certificate is successfully issued, to
share your email address with the Electronic Frontier Foundation, a founding
partner of the Let's Encrypt project and the non-profit organization that
develops Certbot? We'd like to send you email about our work encrypting the web,
EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N
<<<<<<<<<<<<<<<<<<<<<
Account registered.
Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'
to cancel): teste.remontti.com.br
<<<<<<<<<<<<<<<<<<<<<
Requesting a certificate for SEU DOMINIO
Performing the following challenges:
http-01 challenge for teste.remontti.com.br
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/teste.remontti.com.br/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/teste.remontti.com.br/privkey.pem
Your certificate will expire on 2022-02-03. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew *all* of your
certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
vim /usr/local/src/ooklaserver/OoklaServer.properties
openSSL.server.certificateFile =
/etc/letsencrypt/live/SUB.DOMINIO.XXX.XX/fullchain.pem
openSSL.server.privateKeyFile =
/etc/letsencrypt/live/SUB.DOMINIO.XXX.XX/privkey.pem
cp /usr/local/src/ooklaserver/OoklaServer.properties
/usr/local/src/ooklaserver/OoklaServer.properties.default
systemctl restart ooklaserver.service