Once your Linux VPS or Dedicated Server is up and running the websites. You’ll need to keep it protected from security vulnerabilities. To do that, keep patching your server regularly.
Develop a monthly or weekly practice of performing this uncomplicated task and it will save you from a lot of hassle thereafter.
To start, you need to connect to your server via SSH, we have discussed it before, read this tutorial. Once you are connected, switch to root user by running this command:
- sudo su –
and enter your server password. You now have root access.
Next, run the following command:
- yum clean all
- yum update
If you have Ubuntu Linux on your server then replace the above two commands with the following one:
- apt-get upgrade
That’s it. In the case of Windows Server, you need to connect the server via RDC, follow these steps:
- Launch Remote Desktop Connection
- Enter your server’s IP address
- Enter your user name and password
- Select Control Panel from the Start menu
- Click Windows Update
- Click Check for Updates
- Complete the steps to update your server
Managed Hosting, Business Hosting, WordPress, and other assisted service plan customers do not need to patch their own servers. It works either automatically or by the support team.