params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors 解决方法
2010-06-14 08:09
1186 查看
出现该问题一般是因为rsync服务端或客户端目录权限的原因,
rsync推送方->客户端
rsync被推送方->服务端
一般都是将开发测试服务器设为客户端推送端向在LVS的WEB应用集群服务器进行主动同频脚本
将服务端目录权限设为nobody最低即可解决问题
例:
rsync-push-shop-code.sh
只要在服务端 /data/www/shop
执行 chown -R nobody:nobody /data/www/shop 再执行同步脚本就可以了
否责在rsync错误日志中有可能出现类似
params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors的错误.
rsync推送方->客户端
rsync被推送方->服务端
一般都是将开发测试服务器设为客户端推送端向在LVS的WEB应用集群服务器进行主动同频脚本
将服务端目录权限设为nobody最低即可解决问题
例:
rsync-push-shop-code.sh
#!/bin/bash SRCDIR=/data/www/shop MOD=shop USER=web IP_LIST=(192.168.0.22 192.168.0.33) [ ! -d /var/logs/rsync/push-shop-codes/ ] && mkdir -p /var/logs/rsync/push-shop-codes/ for i in ${IP_LIST[*]} do echo -e "/n/n==$i==" #/usr/bin/rsync -vzrtopg --progress --delete-after $SRCDIR rsync://$i/$MOD/ /usr/bin/rsync -vzrtopg --progress --delete-after $SRCDIR backup@$i::$MOD --password-file=/etc/backserver.pas done
只要在服务端 /data/www/shop
执行 chown -R nobody:nobody /data/www/shop 再执行同步脚本就可以了
否责在rsync错误日志中有可能出现类似
params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors的错误.
相关文章推荐
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- error: bad top line in state file /var/lib/logrotate.status 解决方法
- File "/Volumes/android/.repo/repo/main.py", line 531, in <module> _Main(sys.argv[1:]) 解决方法
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Parse error: syntax error, unexpected end of file in *.php on line * 解决方法
- PHP错误Parse error: syntax error, unexpected end of file in test.php on line 12解决方法
- Invalid temp directory in chart handler configuration [c:\TempImageFiles\]解决方法
- Linux Sudo xxx is not in the sudoers file 的解决方法
- Referenced file contains errors 解决方法
- doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 86: No matches
- xxx is not in the sudoers file解决方法
- xxx is not in the sudoers file解决方法
- user is not in the sudoers file. This incident will be reported 解决方法
- Xcode 7.3 cannot create __weak reference in file using manual reference counting解决方法
- xxx is not in the sudoers file. This incident will be reported的解决方法
- Keil常见错误――last line of file ends without a newline原因及解决方法
- Linux下is not in the sudoers file解决方法
- [php错误]PHP中Notice: unserialize(): Error at offset of bytes in on line 的解决方法
- debian中xxx is not in the sudoers file解决方法