This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ wget https://github.com/grafana/loki/releases/download/v2.4.1/promtail-linux-amd64.zip | |
$ unzip promtail-linux-amd64.zip | |
$ mv promtail-linux-amd64 /usr/local/bin/ | |
$ ln -s /usr/local/bin/promtail-linux-amd64 /usr/local/bin/promtail | |
$ useradd --system promtail | |
$ gpasswd -a promtail adm | |
$ nano /etc/systemd/system/promtail.service | |
$ systemctl daemon-reload | |
$ systemctl start promtail.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA] |