Hotfix release available: 2026-07-14b "Mort".
upgrade now! [57.2] (what's this?)
qq_cmd_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| qq_cmd_linux [2024/12/27 17:35] – selim | qq_cmd_linux [2025/10/24 12:57] (current) – selim | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | ||
| - | |||
| - | Dans le repertoire du VH : | ||
| - | mkdir / | ||
| - | mkdir / | ||
| - | |||
| - | Fichier de conf apache2 | ||
| - | cd / | ||
| - | cp sinusoide.fr.conf bo.sogo.sinusoide.fr.conf | ||
| - | --> modifier le fichier de conf | ||
| - | |||
| - | Ajout du site à apache | ||
| - | a2ensite bo.sogo.sinusoide.fr | ||
| - | |||
| - | Rechargement apache | ||
| - | systemctl reload apache2 | ||
| - | |||
| - | chown -R www-data: | ||
| - | chmod -Rv 775 / | ||
| - | | ||
| - | |||
| - | ===== Procédure création du FTP ===== | ||
| - | |||
| - | Nouvel utilisateur virtuel | ||
| - | A faire dans le dossier / | ||
| - | ftpasswd --passwd --name=bosogo_ftp --uid=33 --gid=33 --home=/ | ||
| - | |||
| - | |||
| - | Ajout dans proftpd.conf | ||
| - | < | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== Procédure création du certificat avec certbot ==== | ||
| - | |||
| - | dossier /opt | ||
| - | ./ | ||
| - | |||
| - | |||
| - | révocation certificat : | ||
| - | sudo / | ||
| - | |||
| - | Suppression des fichiers : | ||
| - | sudo rm -rf / | ||
| - | |||
| - | |||
| - | ===== Création BDD ===== | ||
| - | create database creaphilie | ||
| - | use crea_bd | ||
| - | GRANT ALL PRIVILEGES ON crea_bd.* TO ' | ||
| - | |||
| - | |||
| - | ==== Utiliser Git pour le déploiement ==== | ||
| - | |||
| - | sudo setfacl -d -m u::rwx / | ||
| - | |||
| - | |||
| - | |||
| ==== Afficher espace disque ==== | ==== Afficher espace disque ==== | ||
| Line 76: | Line 16: | ||
| ==== Affichage dernières lignes fichiers ==== | ==== Affichage dernières lignes fichiers ==== | ||
| tail -n 5 test.txt | tail -n 5 test.txt | ||
| + | | ||
| + | | ||
| + | ==== Editeur Nano ==== | ||
| + | |||
| + | |Action | ||
| + | |-------------------------------------|---------------------| | ||
| + | |Sélectionner (marquer) | ||
| + | |Supprimer le bloc sélectionné | ||
| + | |Supprimer jusqu’à la fin du fichier | ||
| + | |Coller le texte coupé | ||
| + | |Annuler la dernière action | ||
| + | |Refaire (rétablir) | ||
| + | |||
| - | ==== Import d'un dump sql volumineux via la CLI ==== | ||
| - | MYSQL_PWD=`cat / | ||
qq_cmd_linux.1735320944.txt.gz · Last modified: by selim
