Сообщения

Сообщения за декабрь, 2021

Centos 7 Первоначальная настройка

yum -y install epel-release yum -y update  yum -y install nano htop iotop iftop  hostnamectl set-hostname your-new-hostname iptables ======================== systemctl stop firewalld systemctl disable firewalld systemctl mask --now firewalld  yum -y install iptables-services systemctl start iptables systemctl start ip6tables systemctl enable iptables systemctl enable ip6tables systemctl status iptables systemctl status ip6tables ssh=============================  echo 'Port 22222' >> /etc/ssh/sshd_config   iptables -I INPUT 1 -p tcp  --dport 22222 -j ACCEPT  iptables -A INPUT -j DROP -p tcp --dport 22  service iptables save  zabbix-agent ======================== yum -y install zabbix-agent iptables -I INPUT 1 -p tcp --dport 10050 -j ACCEPT service iptables save yum -y install zabbix-agent systemctl enable zabbix-agent systemctl start zabbix-agent DNS============================== echo 'nameserver 8.8.8.8' >  /etc/resolv.conf echo 'nameserver 8.8.4.4' >