Centos view and locate service error information method

Recently I was learning K8S, using binary installation, and encountered a lot of problems. In order to solve the installation error, you must first analyze the log, view the error message, analyze and solve the problem according to the log.

One: View the system log

method one:

cat /var/log/messages|grep kube-apiserver|grep -i error

Way two:

journalctl -xe -u kube-apiserver        

Two view the service startup status

systemctl status kube-apiserver

 

Guess you like

Origin blog.csdn.net/Lixuanshengchao/article/details/109432309