#rhel

5 commande(s) avec le tag #rhel

Commandes partagées par la communauté CodeBox, copiables en un clic.

Installe un paquet sur des hôtes CentOS/RHEL.

bash
ansible all -m yum -a "name=nginx state=present" --become

Vérifie la syntaxe de la configuration sur CentOS/RHEL.

bash
sudo apachectl configtest

Redémarre Apache (httpd) sur CentOS/RHEL.

bash
sudo systemctl restart httpd

Démarre le service Apache (httpd) sur CentOS/RHEL.

bash
sudo systemctl start httpd

Affiche les logs d'accès en temps réel sur CentOS/RHEL.

bash
sudo tail -f /var/log/httpd/access_log