#service

13 commande(s) avec le tag #service

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

Affiche l'état courant du service Apache2.

bash
sudo systemctl status apache2

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

bash
sudo systemctl restart httpd

Démarre le service Apache2 sur Debian/Ubuntu.

bash
sudo systemctl start apache2

Configure le projet comme une Progressive Web App.

bash
ng add @angular/pwa

Configure Apache2 pour démarrer automatiquement au boot.

bash
sudo systemctl enable apache2

Affiche les services d'un cluster ECS.

bash
aws ecs list-services --cluster mon-cluster --output table

Redémarre un service systemd sur tous les hôtes.

bash
ansible all -m service -a "name=nginx state=restarted" --become

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

bash
sudo systemctl start httpd

Arrête le service Apache2.

bash
sudo systemctl stop apache2

Recharge la configuration sans couper les connexions actives.

bash
sudo systemctl reload apache2

Empêche Apache2 de démarrer automatiquement au boot.

bash
sudo systemctl disable apache2

Génère un service Angular injectable.

bash
ng g service services/nom-service

Redémarre Apache2 (ferme et rouvre les connexions).

bash
sudo systemctl restart apache2