Увеличение лимитов 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 = […]

Читать далее…

Настройка почтового сервера 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 […]

Читать далее…

Отправка логов 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:’) […]

Читать далее…