correction shell

This commit is contained in:
2025-11-20 20:12:55 +01:00
parent 76ddfb8d9c
commit c7bf1dd721
7 changed files with 21 additions and 24 deletions

View File

@@ -13,4 +13,6 @@
#### [Mail](mail.md)
#### [MariaDB](mariadb.md)
### Bases de données
- [MariaDB](mariadb.md)
- [PostgreSQL](postgresql.md)

View File

@@ -54,19 +54,19 @@ docker run --name=grafana -p 9005:3000 -d grafana/grafana:latest
Ajout de la clé du dépôt
```shell
$ wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
```
Ajout du dépôt pour apt
```shell
$ echo "deb https://packages.grafana.com/oss/deb stable main" | tee -a /etc/apt/sources.list.d/grafana.list
echo "deb https://packages.grafana.com/oss/deb stable main" | tee -a /etc/apt/sources.list.d/grafana.list
```
Mise à jour du catalogue des paquets disponibles depuis les dépôts
```shell
$ apt update
apt update
```
Installation
@@ -77,7 +77,7 @@ Installer le [paquet logiciel](/linux/paquet/) `grafana`.
Activation du service
```shell
$ systemctl enable --now grafana-server
systemctl enable --now grafana-server
```
Ouvrir avec un navigateur l'adresse suivante :
@@ -92,8 +92,8 @@ Stocker le nouveau mot de passe dans KeePass.
### Plugins
```shell
$ grafana-cli plugins install grafana-worldmap-panel
$ grafana-cli plugins install simpod-json-datasource
grafana-cli plugins install grafana-worldmap-panel
grafana-cli plugins install simpod-json-datasource
```
## Ajouter une source de données

View File

@@ -1,6 +1,6 @@
# MariaDB
Installer le [paquet logiciel](package) `mariadb-server`.
Installer le [paquet logiciel](package.md) `mariadb-server`.
```sh
apt install --no-install-recommends mariadb-server
@@ -9,14 +9,14 @@ apt install --no-install-recommends mariadb-server
## Docker
```shell
$ docker pull mariadb:12.0
docker pull mariadb:12.0
```
```shell
docker network create mariadb_net
```
```shell
$ docker run --detach --name mariadb \
docker run --detach --name mariadb \
-e MARIADB_ROOT_PASSWORD=my-secret-pw \
--network mariadb_net
-p 3306:3306 \
@@ -27,11 +27,11 @@ $ docker run --detach --name mariadb \
## phpMyAdmin
```shell
$ docker pull phpmyadmin:5.2-fpm-alpine
docker pull phpmyadmin:5.2-fpm-alpine
```
```shell
$ docker run --detach --name phpmyadmin
docker run --detach --name phpmyadmin
--network mariadb_net
-p 8080:80
phpmyadmin:5.2-fpm-alpine

View File

@@ -1,4 +1,6 @@
# postgreSQL
# PostgreSQL
## Debian
```shell
sudo apt install -y postgresql-common
@@ -25,13 +27,6 @@ docker run --detach --name pgsql \
iut/pgsql:2025-12
```
```shell
volumes:
- database_data:/var/lib/postgresql:rw
- ./postgresql-entrypoint-initdb.d:/docker-entrypoint-initdb.d:Z
- ./data:/tmp:Z
```
## pgAdmin
```

View File

@@ -96,6 +96,6 @@ WantedBy=multi-user.target
```
```shell
$ sudo systemctl enable --now prometheus
$ sudo systemctl status prometheus
sudo systemctl enable --now prometheus
sudo systemctl status prometheus
```

2
ssh.md
View File

@@ -44,7 +44,7 @@ chmod 600 .ssh/authorized_keys
> ***SFTP*** est un protocole de communication fonctionnant au-dessus de `SSH` pour transférer et gérer des fichiers à distance.
:warning: Il ne faut pas confondre `sftp` avec `ftps`. Les 2 protocoles offrent les mêmes fonctionnalités de transfert de fichiers. Cependant le `ftps` fonctionne sur la base du FTP en l'encapsulant dans une couche SSL/TLS alors que le sftp fonctionne au dessus de SSH.
:warning: Il ne faut pas confondre **sftp** avec **ftps**. Les 2 protocoles offrent les mêmes fonctionnalités de transfert de fichiers. Cependant le **ftps** fonctionne sur la base du **ftp** en l'encapsulant dans une couche SSL/TLS alors que le **sftp** fonctionne au dessus de ***ssh**.
Créer le groupe `sftp`.

View File

@@ -32,7 +32,7 @@
Create world-class API Docs with a built-in interactive playground which seamlessly turns to a full featured API Client
```shell
$ docker run --detach --name scalar \
docker run --detach --name scalar \
environment:
API_REFERENCE_CONFIG: |
{