OS 㯠fedora core 5 / 6 ã§ã以ä¸ã®ãããªæ§æã§ã
- www (192.168.0.10)
- Apache, spread
- loghost (192.168.0.11)
- spread, spreadlogd
spread-src-3.17.4.tar.gz ããã¦ã³ãã¼ãããå±éã
$ ./configure $ make # make install
/usr/local/lib ã«ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãããã®ã§ãld.so.conf ã« /usr/local/lib ã追å ãã/sbin/ldconfig ãã¦ããã
Perl ã¢ã¸ã¥ã¼ã«ãã¤ã³ã¹ãã¼ã«ã
$ cd perl/Spread $ perl Makefile.PL $ make $ make test # make install
Spread.pm ã¯ã¤ã³ã¿ã¼ãã§ã¼ã¹ã Perl ã£ã½ããªãã¦ããã¾ãã¡ä½¿ãã¥ããã®ã§ãPerl 使ãã®æ¹ã¯ Spread::Session ãå ¥ãã¦ããã¨åããã
/usr/local/etc/spread.conf
# ããã¼ããã£ã¹ãã使ãå ´å Spread_Segment 192.168.0.255:4803 { www 192.168.0.10 loghost 192.168.0.11 } # ãã«ããã£ã¹ãã使ãå ´å Spread_Segment 225.0.0.1:4803 { www 192.168.0.10 loghost 192.168.0.11 } RuntimeDir = /var/run/spread DaemonUser = nobody DaemonGroup = nobody
æåãéãããããã¯ã¼ã¯ (default gateway ããªã) ã§ãã«ããã£ã¹ãã使ããã¨ããã
DL_init_channel: problem in setsockopt to multicast address
ã¨ããã¨ã©ã¼ãåºã¦ spread ãèµ·åãããããªãã¯ã¾ã£ãã
# route add -net 224.0.0.0/4 dev eth0
ã¨ãã¦ããã«ããã£ã¹ãã®çµè·¯ãè¨å®ãã¦ããå¿ è¦ããã£ãã
DaemonUser, DaemonGroup ãæå®ããå ´å㯠RuntimeDir ã« chroot ãã¦åä½ãããããããããã /var/run/spread ã使ãã¦ããã
èµ·åã
# /usr/local/sbin/spread (ä¸ç¥) Conf_init: using file: /usr/local/etc/spread.conf Successfully configured Segment 0 [225.0.0.1:4803] with 2 procs: www: 192.168.0.10 loghost: 192.168.0.11 Set user name to 'nobody' Set group name to 'nobody' Membership id is ( -1062731627, 1169641071) -------------------- Configuration at fc5 is: Num Segments 1 2 225.0.0.1 4803 www 192.168.0.10 loghost 192.168.0.11 ==================== ++++++++++++++++++++++ Num of groups: 0
www, loghost 両æ¹ã§èµ·åããã¨ãæ°ç§ã§ãããªæãã«ã
spread ãèµ·åããç¶æ ã§ãspuser ã¨ãã対話ã³ãã³ãã使ãã¨ãã¡ãã»ã¼ã¸ã®éåä¿¡ããã¹ãã§ãã¾ãã