Настройка сервера синхронизации времени NTP chrony в CentOS 8 / RHEL 8
Актуальность времени на всех узлах в локальной сети является обязательным. Выполним установку и настройку сервера NTP chrony.
#!/bin/bash
if [ -e /usr/sbin/chronyd ];
then
echo "Chrony is installed..."
else
echo "Update the package lists..."
dnf check-update
echo "Installing chronyd..."
dnf install chrony -y
fi
echo "Configure NTP server..."
echo 'pool 0.asia.pool.ntp.org iburst' >> /etc/chrony.conf
echo 'pool 1.asia.pool.ntp.org iburst' >> /etc/chrony.conf
echo 'pool 2.asia.pool.ntp.org iburst' >> /etc/chrony.conf
echo 'pool 3.asia.pool.ntp.org iburst' >> /etc/chrony.conf
sed -i 's/#allow 192.168.0.0/allow 192.168.0.0/g' /etc/chrony.conf
sed -i 's/OPTIONS=""/OPTIONS="-4"/g' /etc/sysconfig/chronyd
echo "Enable and start chronyd.service"
systemctl enable --now chronyd
echo "Opening 123/udp port..."
firewall-cmd --zone=public --add-port=123/udp --permanent
firewall-cmd --reload
Комментарии
Hi tһere, I would like what hɑs һappened
to abc classic fm? subscribe fоr this web site
tо tаke most սp-to-ⅾate updates, tһerefore ѡherе сan i do it please help out.
to abc classic fm? subscribe fоr this web site
tо tаke most սp-to-ⅾate updates, tһerefore ѡherе сan i do it please help out.
<a href=https://sites.google.com/view/hondrostrong-crema-italia/>hondrostrong crema italia</a>
Принудительное обновление сертификата:
certbot certonly --force-renew -d newsite.com
certbot certonly --force-renew -d newsite.com
Получаем SSL сертификат с помощью плагина nginx:
certbot certonly --nginx -d newsite.com -d www.newsite.com
certbot certonly --nginx -d newsite.com -d www.newsite.com
Можно, но я решил описать процесс копирования ключей более подробно.
Какой дистрибутив Linux вы часто используете?
Реклама

Гости1