|
|
|
@ -24,15 +24,17 @@ Reproduire sur l'autre noeud à l'identique.
|
|
|
|
|
Redemarrer nfs-kernel-server
|
|
|
|
|
systemctl restart nfs-kernel-server
|
|
|
|
|
|
|
|
|
|
- Install NFS Client sur server1
|
|
|
|
|
- Install NFS Client sur server1 + montage partage
|
|
|
|
|
apt install nfs client
|
|
|
|
|
showmount -e [[IPNode2]]
|
|
|
|
|
mount -t nfs mount -t nfs 51.38.178.108:/mnt/nfs/www /usr/share/nginx/nfs/html/
|
|
|
|
|
|
|
|
|
|
### Installation stack nginx php7.0 mysql-server
|
|
|
|
|
## Installation stack nginx php7.0 mysql-server
|
|
|
|
|
|
|
|
|
|
Client : apt install nginx php7.0 phpmyadmin [[Ce dernier install tout un tas de dépendance PHP]]
|
|
|
|
|
Client : mount -t nfs 51.38.178.108:/mnt/nfs/www /usr/share/nginx/nfs/html/
|
|
|
|
|
|
|
|
|
|
https://git.aumont.fr/mathieu/Bloc-Note/raw/branch/master/Neocom/default
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Installation MariaDB sur Node2
|
|
|
|
|
apt get install mariadb-server
|
|
|
|
@ -45,6 +47,9 @@ bind-address = 51.38.178.107 [IP de la machine]
|
|
|
|
|
replicate-do-db=codepostaux
|
|
|
|
|
log-bin
|
|
|
|
|
|
|
|
|
|
Se connecter en root sur mysql.
|
|
|
|
|
|
|
|
|
|
### Création certificat ### Probléme
|
|
|
|
|
|
|
|
|
|
root@vps539669:/usr/share/nginx/nfs/html# certbot --nginx certonly --register-unsafely-without-email -d vps539669.ovh.net
|
|
|
|
|
Saving debug log to /var/log/letsencrypt/letsencrypt.log
|
|
|
|
@ -60,6 +65,8 @@ Impossible d'uploader
|
|
|
|
|
|
|
|
|
|
Installation firewall
|
|
|
|
|
|
|
|
|
|
apt install ufw
|
|
|
|
|
|
|
|
|
|
ufw allow ssh
|
|
|
|
|
ufw allow http
|
|
|
|
|
ufw allow https
|
|
|
|
|