Mettre à jour 'notep-TP'

master
mathieu 4 years ago
parent 1971888e75
commit 2e8c4a6d73

@ -1,3 +1,75 @@
### Note d'installation TP neocom
root Mysql password + phpmyadmin : +M?ex3rr!Y%)Ua_#
Replication Mysql OK
Montage NFS OK
Firewalling OK
Autorisation sur phpmyadmin uniquement pour l'ip 88.177.222.27 OK
PhpMyadmin OK
Commencer par
- editer le /etc/hosts des deux machines pour plus de faciliter.
xxx.xxx.xxx.xxx vpsxxxx.ovh.net server1
xxx.xxx.xxx.xxx vpsxxxx.ovh.net server2
Reproduire sur l'autre noeud à l'identique.
## Création d'un export NFS
- server2 : apt install nfs-kernel-server
- server2 : mkdir -p /mnt/nfs/www (Ici se trouveront les sources)
- Ajouter dans /etc/export sur node (secondaire)
/mnt/nfs/www 51.38.178.107(rw,sync,no_subtree_check,sync,no_root_squash)
Redemarrer nfs-kernel-server
systemctl restart nfs-kernel-server
- Install NFS Client sur server1
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
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/
## Installation MariaDB sur Node2
apt get install mariadb-server
Sur node server :
Editer :
/etc/mysql/mariadb.conf.d/50-server.cnf
bind-address = 51.38.178.107 [IP de la machine]
replicate-do-db=codepostaux
log-bin
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
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
An unexpected error occurred:
There were too many requests of a given type :: Error creating new order :: too many certificates already issued for: ovh.net: see https://letsencrypt.org/docs/rate-limits/
Please see the logfiles in /var/log/letsencrypt for more details.
root password + phpmyadmin : +M?ex3rr!Y%)Ua_#
Impossible d'uploader
Installation firewall
ufw allow ssh
ufw allow http
ufw allow https
ufw allow mysql (car écoute sur socket ip)
ufw enable
1 - Noeud deux : apt install nfs-kernel-server
2 - Node 2 : mkdir -p /mnt/nfs/www
/mnt/nfs/www 51.38.178.107(r,no_subtree_check,sync,no_root_squash)

Loading…
Cancel
Save