Tutto sul mondo dei Sistemi Operativi, Software proprietari e non e tantissimo sul mondo Open Source.


techgre

Ciao a tutti,
vi riporto i passi per installare Nginx da sorgente su Debian:

sudo apt update && sudo apt upgrade

sudo apt install build-essential libpcre3-dev libssl-dev zlib1g-dev libgd-dev

wget nginx.org/download/nginx-1.25.1.tar.gz

tar -xzvf nginx-1.25.1.tar.gz

cd nginx-1.25.1

./configure --prefix=/var/www/html --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --with-pcre --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-http_ssl_module --with-http_image_filter_module=dynamic --modules-path=/etc/nginx/modules --with-http_v2_module --with-http_v3_module --with-stream=dynamic --with-http_addition_module --with-http_mp4_module

make

make install

vim /etc/systemd/system/nginx.service

[Unit]
Description=The NGINX HTTP and reverse proxy server
After=syslog.target network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target

[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
ExecReload=/usr/sbin/nginx -s reload
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

systemctl daemon-reload

systemctl start nginx

systemctl enable nginx

2 years ago | [YT] | 0

techgre

Tre Modi per eliminare i commenti e spazi bianchi da un file di configurazione:



awk '!/^ *#/ && NF' file
egrep -v '^[[:space:]]*$|^ *#' file
sed -e '/^[[:space:]]*$/d' -e '/^[[:space:]]*#/d' file


Seguiteci per altri contenuti :)

2 years ago | [YT] | 0

techgre

Finalmente rilasciata la versione Debian 12 Bookworm #debian #release

2 years ago | [YT] | 0

techgre

Il Famoso Browser nel 2002 si presentava così 🙂
Seguici per altri contenuti 😀
TechGre

2 years ago | [YT] | 0

techgre

Buongiorno,
nella configurazione di Grafana per attivare la funzione di importazione dati da CSV è necessario aggiungere le seguenti direttive in fondo al file grafana.ini:

[plugin.marcusolsson-csv-datasource]
allow_local_mode = true

2 years ago | [YT] | 0

techgre

Per la parte 3 del video sui comandi Powershell vi aggiungo anche gli appunti spero possano essere di vostro gradimento:

Copia Di un Singolo File


Copy-Item -Path C:\Users\Utente_Windows\Desktop\Cartella1\File1.txt -Destination C:\Users\Utente_Windows\Desktop\Cartella2\ -Verbose


Copia di una cartella dentro un'altra cartella


Copy-Item -Path C:\Users\Utente_Windows\Desktop\Cartella1\ -Destination C:\Users\Utente_Windows\Desktop\Cartella2\ -Verbose


Copia dei soli file dentro la cartella e le sue sottocartelle


Get-ChildItem C:\Users\Utente_Windows\Desktop\Cartella1\ -File -Recurse | Copy-Item -Destination C:\Users\Utente_Windows\Desktop\Cartella2\



Copia identica di file e sottocartelle di una cartella


Copy-Item -Path C:\Users\Utente_Windows\Desktop\Cartella1\* -Destination C:\Users\Utente_Windows\Desktop\Cartella2\ -Recurse -Verbose



Aggiungiamo l'opzione -Filter per portare solo i file .xml, primo caso non entriamo nelle sottocartelle



Copy-Item -Path C:\Users\Utente_Windows\Desktop\Cartella1\* -Destination C:\Users\Utente_Windows\Desktop\Cartella2\ -Filter '*.xml' -Recurse -Verbose



nel secondo caso facciamo accesso alle sottocartelle



Get-ChildItem C:\Users\Utente_Windows\Desktop\Cartella1\ -File -Recurse -Filter '*.txt' | Copy-Item -Destination C:\Users\Utente_Windows\Desktop\Cartella2\



Al posto di Utente_Windows andate a sostituire il vostro utente.

2 years ago (edited) | [YT] | 0