Установка и настройка Nginx на Ubuntu

How to install and setup Nginx on Ubuntu

sudo apt-get install nginx
sudo systemctl start nginx
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo systemctl restart nginx
sysctl net.core
net.core.somaxconn = 128
net.core.netdev_max_backlog = 200
net.core.somaxconn = 1280
net.core.netdev_max_backlog = 2000

--

--

Software Engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store