IMAGE服务器软件配置

时间:2024-12-17 22:05:08

NFS:

vim /etc/exports

/bak/www/www.xxxl.com/public/ 10.20.10.0/24(rw,sync,no_root_squash)
/bak/www/www.xxx.com/themes/ 10.20.10.0/24(rw,sync,no_root_squash)

RSYNC

vim /etc/rsyncd.conf

uid=root
gid=root
max connections=36000
use chroot=no
log file=/var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=/var/run/rsyncd.lock

[xxx]
path=/www.xxx.cn/public/
comment = www.xxxx.cn image files
ignore errors = yes
read only = no
hosts allow = 10.20.20.0/24
hosts deny = *

启动

rsync --daemon