shutdown

How to you shutdown and restart the server running Cloudear services and restart is properly without breaking it? I need to add more mempry to my VMs but last time i tried to do a restart nothing was working after.