Увеличение лимитов 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.

Настройка почтового сервера exim4

sudo apt-get -y install exim4 To configure Exim for your environment, execute: sudo dpkg-reconfigure exim4-config Configure everything according to your needs. If you ever need to modify any of your settings, simply re-run the configuration wizard. Mail Server Configuration Type The first configuration window you encounter will ask you to select the “mail server configuration […]

Читать дальше… from Настройка почтового сервера exim4

Отправка логов vmware 6.5 в syslog-ng server

На твари делаем в консоли esxcli system syslog config set –loghost=udp://10.9.3.210:514,tcp://10.9.3.210:514 esxcli network firewall ruleset set –ruleset-id=syslog –enabled=true esxcli network firewall refresh esxcli system syslog reload nc -z 10.9.3.210 514 В syslog-ng принимаем и шлем в elasticsearch ##Прием логов vmware source tcp_remote_log_host_vmware { tcp(port(514) so_rcvbuf(67108864) log_iw_size(100000) log_fetch_limit(1000000) max-connections(200)); }; filter f_vmware { match(‘^Vpxa:’) or match(‘^Hostd:’) […]

Читать дальше… from Отправка логов vmware 6.5 в syslog-ng server

Nginx fastcgi cache – пример конфига

Nginx fastcgi cache – пример конфига с user www-data www-data; worker_processes 1; lock_file /run/lock/nginx.lock; events { worker_connections 1024; } http { server_tokens off; sendfile on; tcp_nopush on; keepalive_timeout 5; include /etc/nginx/mime.types; default_type application/octet-stream; gzip on; gzip_static on; gzip_comp_level 2; gzip_disable “msie6”; gzip_proxied any; gzip_types application/javascript application/json application/vnd.ms-fontobject application/x-font-ttf image/svg+xml text/css text/plain text/xml; gzip_vary on; fastcgi_cache_path […]

Читать дальше… from Nginx fastcgi cache – пример конфига