87 views
Как узнать подробности, если статус системного сервиса в Linux плохой?
Asked at
AI answer
You can check a service’s status and recent messages like this:
systemctl status service-name
journalctl -u service-name -n 100 --no-pager
For a detailed log from the time of the failure, use, for example, journalctl -u service-name --since '30 minutes ago'; to monitor new messages, use journalctl -fu service-name. systemctl status usually shows only part of the log, so journalctl is useful for troubleshooting.
Also asked at Касперский
Similar questions
- What commands and approaches do you use for working with processes in Linux?
- Explain what the system load average in Linux means and how it is calculated
- Are you familiar with Linux commands?
- How can you obtain a list of all user accounts, including system and hidden ones, in a Linux system?
- Name five Linux commands of three letters.