Installing Nginx on a VPS Server
Let's install Nginx on our VPS server. First, execute the following command:
terminalapt install software-properties-common
Now let's get the latest version of Nginx:
terminalapt-add-repository ppa:nginx/stable
Next, update the package lists from the repositories:
terminalapt update
Install Nginx:
terminalapt install nginx
Add Nginx to autostart, so it starts automatically after server reboot:
terminalsystemctl enable nginx
Let's check that Nginx is installed:
terminalnginx -v
Задание 1
Install Nginx.