Difference between revisions of "Server Administration"

From Rhomicom Wiki
Jump to navigation Jump to search
m (Admin moved page Web Hosting Services to Server Administration: Page is more about server administration than web hosting)
Line 5: Line 5:
 
nano /etc/systemd/journald.conf
 
nano /etc/systemd/journald.conf
 
service systemd-journald restart
 
service systemd-journald restart
 +
</Syntaxhighlight>
 +
 +
=== SWAPPINESS ===
 +
<syntaxhighlight>
 +
nano /etc/sysctl.conf
 +
vm.overcommit_memory=1
 +
vm.swappiness=80
 +
# restart server
 
</Syntaxhighlight>
 
</Syntaxhighlight>

Revision as of 08:00, 3 September 2023

du -csh /var/log/*
journalctl --disk-usage
sudo journalctl --vacuum-size=100M
nano /etc/systemd/journald.conf
service systemd-journald restart

SWAPPINESS

nano /etc/sysctl.conf 
vm.overcommit_memory=1
vm.swappiness=80
# restart server