From ArchWiki
Revision as of 19:07, 20 September 2007 by Bootiack (Talk | contribs)

Jump to: navigation, search

Aolserver is "20x the speed of apache" a web server with tcl compiled in with 1 pooled db connection 2 single process multiple threads 3 cache-ing of pages and db return results in memory. Powers and is massively scalable.

I refer to Prof P Greenspun of MIT

The README has install instructions as well.

install tcl with threads per the readme pacman -Sy tcl

grab aolserver and untar wget untar aolserver tar xzvf wget

cd into new install dir, create a target home dir for aolserver, and compile into a new target home dir: mkdir (whatever; example /opt/aolserver) /usr/bin/tclsh ./nsconfig.tcl -install (whatever you want example: /opt/aolserver) make install clean

[from README] 3d. Once the binaries are built and installed, create and edit

       a config file, nsd.tcl by convention.  A sample is provided
       to get started:
       % cd (target home dir for aolserver)
       % cp base.tcl nsd.tcl
       % vi nsd.tcl (nothing really needs to be changed until you learn config stuff, defaults to port 8000)
       Additional configuration examples can be found in the 
       examples/config directory.

3e. Try running the server in a shell window:

       % cd (target aolserver home)
       % bin/nsd -ft nsd.tcl -u (a user you like)


  1. place new pages you wget and rename xyz.html in the pages directory

(aolserver target homdir)/servers/server1/pages has more