impatient.yo (2084B)
1 2 For the impatient, here's the very-quick-but-very-superficial recipy 3 for getting crossroads up and running: 4 5 itemization( 6 7 it() If you don't have SVN or don't want to use it: 8 9 itemization( 10 it() Obtain the crossroads source archive at 11 lurl(http://crossroads.e-tunity.com). 12 13 it() Change-dir to a 'sources' directory on your system and 14 unpack the archive. 15 16 it() Change-dir into the create directory tt(crossroads/).) 17 18 it() If you have SVN and want to go for the newest snapshot: 19 20 itemization( 21 it() Get the latest sources and snapshots using SVN from nl() 22 tt(svn://svn.e-tunity.com/crossroads). 23 24 it() You'll find the newest alpha version under 25 tt(crossroads/trunk) and the stable versions under 26 tt(crossroads/tags), 27 e.g. tt(crossroads/tags/release-1.00). 28 29 it() Choose which you want to use: the latest stable 30 release, or the bleeding edge alpha? In the former case, 31 change-dir to tt(crossroads/tags/release-)em(X.YY), where 32 em(X.YY) is a release ID. In the latter case, change-dir to 33 tt(crossroads/trunk).) 34 35 it() Type tt(make install). This installs the crossroads 36 binary into tt(/usr/local/bin/). If the compilation doesn't 37 work on your system, check tt(etc/Makefile.def) for hints. 38 39 it() Create a file tt(/etc/crossroads.conf). In it state 40 something like: 41 42 verb(\ 43 service www { 44 port 80; 45 revivinginterval 15; 46 backend one { 47 server 10.1.1.100:80; 48 } 49 backend two { 50 server 10.1.1.101:80; 51 } 52 }) 53 54 That's off course assuming that you want to balance HTTP on 55 port 80 to two back ends at 10.1.1.100 and 10.1.1.101. 56 57 it() Type tt(crossroads start). 58 59 it() Surf to the machine where crossroads is running. You will 60 see the pages served by the back ends 10.1.1.100 or 61 10.1.1.101. 62 63 it() To monitor the status of crossroads, type tt(crossroads 64 status). 65 )