Common Commands
Start manager
bash ./service.sh start
Start manager and HAP service
bash ./service.sh startall
Stop manager and HAP service
bash ./service.sh stopall
Restart manager and HAP service
bash ./service.sh restartall
Enter the microservice application container
Docker Compose
docker exec -it $(docker ps | grep community | awk '{print $1}') bash
kubernetes
# Take the Default Namespace as an example,according to the actual pod name to modify hap-0.
kubectl exec -it hap-0 bash
Logs
View health-checking logs of the microservice application
Docker Compose
docker logs $(docker ps | grep community | awk '{print $1}')
kubernetes
# Take the Default Namespace as an example,according to the actual pod name to modify hap-0.
View running logs of the microservices application (abnormal or non-abnormal)
-
Enter the microservice application container
-
Execute the command to view the logs
source /entrypoint.sh && log log