Installation Nginx в Ubuntu

Выполните

sudo apt update

[sudo] password for andrei: Hit:1 http://fi.archive.ubuntu.com/ubuntu focal InRelease Get:2 http://fi.archive.ubuntu.com/ubuntu focal-updates InRelease [111 kB] Get:3 http://fi.archive.ubuntu.com/ubuntu focal-backports InRelease [98,3 kB] Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB] Get:5 https://download.docker.com/linux/ubuntu focal InRelease [36,2 kB] Hit:6 http://ppa.launchpad.net/yandex-load/main/ubuntu focal InRelease Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [107 kB] Get:8 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [637 kB] Get:9 http://fi.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [365 kB] Get:10 http://fi.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [229 kB] Get:11 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [686 kB] Get:12 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [510 kB] Get:13 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [205 kB] Get:14 http://fi.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2 468 B] Get:15 http://fi.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [1 768 B] Get:16 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [49,0 kB] Get:17 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [24,3 kB] Get:18 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [56,6 kB] Fetched 3 207 kB in 1s (2 606 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 226 packages can be upgraded. Run 'apt list --upgradable' to see them.

sudo apt install nginx

Reading package lists... Done Building dependency tree Reading state information... Done nginx is already the newest version (1.18.0-0ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 226 not upgraded.

После устаноки добавим Nginx в автозапуск

sudo systemctl enable nginx

Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install enable nginx

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: