System:Service Management: Difference between revisions
Appearance
Added troubleshooting guide: Service Management |
Minor update - troubleshooting guide: Service Management (13 sections) |
||
| Line 37: | Line 37: | ||
'''Location''': <code>/var/log/nginx/access.log</code> | '''Location''': <code>/var/log/nginx/access.log</code> | ||
* Records all HTTP requests | |||
* Useful for traffic analysis and debugging | |||
=== Error Logs === | === Error Logs === | ||
| Line 44: | Line 45: | ||
'''Location''': <code>/var/log/nginx/error.log</code> | '''Location''': <code>/var/log/nginx/error.log</code> | ||
* Records errors and warnings | |||
* First place to check for issues | |||
=== View Logs === | === View Logs === | ||
| Line 75: | Line 77: | ||
== Related Documentation == | == Related Documentation == | ||
* [Network Architecture](network-architecture.md) - Network overview | |||
* [[Documentation:Index|Troubleshooting]] - Service troubleshooting | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Documentation/System]] | [[Category:Documentation/System]] | ||
Revision as of 13:27, 1 January 2026
Service Management
This document describes how to manage services in the reverse proxy system.
Nginx Service
Status Check
systemctl status nginx
Configuration Test
nginx -t
Reload Configuration
Reload nginx to apply new configuration (graceful, no downtime):
systemctl reload nginx
Restart Service
systemctl restart nginx
Logs
Access Logs
Location: /var/log/nginx/access.log
- Records all HTTP requests
- Useful for traffic analysis and debugging
Error Logs
Location: /var/log/nginx/error.log
- Records errors and warnings
- First place to check for issues
View Logs
tail -f /var/log/nginx/access.log tail -f /var/log/nginx/error.log
Maintenance
Regular Tasks
Certificate Monitoring: Verify auto-renewal is working (certbot handles this)
Log Review: Check nginx logs for errors or unusual activity
Package Updates: Keep nginx and certbot updated
Configuration Backups: Backup nginx configurations periodically
Backup Commands
= Backup nginx configurations = tar -czf nginx-config-backup-$(date +%Y%m%d).tar.gz /etc/nginx/sites-available/ = Backup SSL certificates (optional, usually not needed) = tar -czf certbot-backup-$(date +%Y%m%d).tar.gz /etc/letsencrypt/
Related Documentation
- [Network Architecture](network-architecture.md) - Network overview
- Troubleshooting - Service troubleshooting