Launch the PuTTY SSH client, then enter your server’s SSH IP and SSH Port. Click the Open button to proceed.
A login as: message will pop-up and asks you to enter your SSH username. For VPS and Server users, this is usually root. After entering your username, press Enter.
Type your SSH password and press Enter again. For security reasons, the screen won’t show the password but will register what you type.
Congratulations! You have successfully connected to your account using the PuTTY SSH client. You can list all available SSH commands by executing help via the terminal.
If you’ve ever looked at your hard drive or SSD in Windows Disk Manager and seen a partition with the description “Healthy (Recovery Partition),” that’s your recovery partition. Windows or your computer manufacturer (or both) puts these partitions there so you can restore your system to its original state in case of emergency. However, if you already have a full backup image on an external drive, which is better, you might want to delete the recovery partition to save space.
Unfortunately, Windows won’t let you delete the recovery partition in Disk Manager. When you try right clicking on it, Delete Volume isn’t an option as it is on other partitions. This limitation can be particularly annoying when you have a larger disk and you want to combine too partitions, but they are separated by a recovery partition. Whether you want to combine partitions or just save some space, here’s how to delete a recovery partition in Windows 10 (instructions also work for 7 or 8).
1. Type Cmd into the Windows search box. A list of results appears.
2. Right click on Command Prompt and select “Run as Administrator.”
3. Type “diskpart” at the command prompt and hit Enter.
4. Type “list disk” and hit Enter. A list of physical drives appears. If you’re doing this on a laptop, you probably only have one drive.
5. Type “select disk” and the number of the disk. The first (or only) disk is number 0. Hit Enter.
6. Type “list partition.” A list of partitions appears.
7. Type “selection partition” and the number of the recovery partition you wish to delete. There may be more than one.
8. Type “delete partition override.”
That will erase the partition. However, you should make sure you have a full system backup on an external drive so you can do a restore if you ever need to.
Nginx pronounced engine x is a free, open-source, high-performance HTTP and reverse proxy server responsible for handling the load of some of the largest sites on the Internet.
Nginx can be used as a standalone web server, and as a reverse proxy for Apache and other web servers.
Compared to Apache, Nginx can handle a much large number of concurrent connections and has a smaller memory footprint per connection.
This tutorial will teach you how to install and manage Nginx on your CentOS 7 machine.
Prerequisites
Before starting with the tutorial, make sure you are logged in as a user with sudo privileges and you don’t have Apache or any other service running on port 80 or 443.
Installing Nginx on CentOS
Follow the steps below to install Nginx on your CentOS server:
Nginx packages are available in the EPEL repositories. If you don’t have EPEL repository already installed you can do it by typing:
sudo yum install epel-release
Install Nginx by typing the following yum command:
sudo yum install nginx
If this is the first time you are installing a package from the EPEL repository, yum may prompt you to import the EPEL GPG key:
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-9.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Is this ok [y/N]:
If that’s the case, type y and hit Enter.
Once the installation is complete, enable and start the Nginx service with:
Check the status of the Nginx service with the following command:
sudo systemctl status nginx
The output should look something like this:
nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2020-07-25 15:15:48 UTC; 2s ago
Process: 1977 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Process: 1975 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 1973 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Main PID: 1980 (nginx)
CGroup: /system.slice/nginx.service
├─1980 nginx: master process /usr/sbin/nginx
└─1981 nginx: worker process
If your server is protected by a firewall you need to open both HTTP (80) and HTTPS (443) ports.Use the following commands to open the necessary ports:
To verify your Nginx installation, open http://YOUR_IP in your browser of choice, and you will see the default Nginx welcome page as shown in the image below: