Difference between revisions of "Server Administration"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 13: | Line 13: | ||
| vm.swappiness=80 | vm.swappiness=80 | ||
| # restart server | # restart server | ||
| + | |||
| + | grep processor /proc/cpuinfo | wc -l | ||
| + | nano /etc/nginx/nginx.conf | ||
| + | ulimit -n | ||
| + | |||
| + | nano /etc/sysctl.conf  | ||
| + | free -h | ||
| + | sudo swapon --all --verbose | ||
| + | df -h | ||
| + | |||
| </Syntaxhighlight> | </Syntaxhighlight> | ||
Revision as of 08:06, 3 September 2023
du -csh /var/log/*
journalctl --disk-usage
sudo journalctl --vacuum-size=100M
nano /etc/systemd/journald.conf
service systemd-journald restartSWAPPINESS
nano /etc/sysctl.conf 
vm.overcommit_memory=1
vm.swappiness=80
# restart server
grep processor /proc/cpuinfo | wc -l
nano /etc/nginx/nginx.conf
ulimit -n
nano /etc/sysctl.conf 
free -h
sudo swapon --all --verbose
df -h