master ip: 192.168.40.251
slave (remote)ip: 192.168.40.252
apt-get update -y
apt-get upgrade -y
apt-get install lsyncd -y
lsyncd --version
mkdir /etc/lsyncd
nano /etc/lsyncd/lsyncd.conf.lua
ssh-keygen -t rsa
ssh-copy-id root@192.168.40.252
ssh 'root@192.168.40.252'
nano /etc/lsyncd/lsyncd.conf.lua
systemctl restart lsyncd
tail -f /var/log/lsyncd/lsyncd.log
mkdir /var/log/lsyncd/
pico /var/log/lsyncd/lsyncd.log
systemctl restart lsyncd
tail -f /var/log/lsyncd/lsyncd.log
/etc/lsyncd/lsyncd.conf.lua içeriği
settings {
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd.status",
statusInterval = 20,
nodaemon = false
}
sync {
default.rsyncssh,
source = "/etc/freeradius/",
host = "192.168.40.252",
targetdir = "/etc/freeradius/"
}
1 ping
FreeRADIUS birden çok LDAP sunucusu ile nasıl yapılandırılır? » Hüseyin PARMAKSIZ
24 Ocak 2021, 16:39 (UTC 3) Bu yoruma bağlantı
[…] « İki sunucu arasındaki dizinleri senkron etme […]