Parted – утилита для работы с дисками linux

Parted – утилита для работы с дисками linux Создаем раздел на sdc и форматируем в ext4 все 100% места в non-interactive mode parted -a optimal -s /dev/sdc mklabel msdos mkpart primary ext4 0% 100% […]

Читать дальше… from Parted – утилита для работы с дисками linux

Nginx rewrite if file not found

Nginx rewrite if file not found</h1> Если картинка не найдена в текущем локации – реврайт на запасную location /pictures { root /var/hosting/; autoindex_exact_size off; autoindex off; try_files $uri @pictures2 ; } location /pictures2 { root /var/hosting/; autoindex_exact_size off; autoindex off; } location @pictures2 { rewrite ^/pictures/(.*) https://itc-life.ru/pictures2/$1 break; } Для proxy_pass location /uploads/calls/ { proxy_pass […]

Читать дальше… from Nginx rewrite if file not found

Увеличение лимитов linux и тюнинг ядра для hiload.

Увеличение лимитов linux nano /etc/security/limits.conf * – nofile 999999 * soft nofile 500000 * hard nofile 500000 root soft nofile 500000 root hard nofile 500000 root soft nproc unlimited root hard nproc unlimited Тюнинг sysctl.conf nano /etc/sysctl.conf net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.ip_local_port_range = 10240 65535 net.ipv4.conf.all.accept_redirects = 0 net.ipv4.conf.all.secure_redirects = 0 net.ipv4.conf.all.send_redirects = […]

Читать дальше… from Увеличение лимитов linux и тюнинг ядра для hiload.