Difference between revisions of "User:Bootiack/AOLserver"

From ArchWiki
Jump to: navigation, search
Line 17: Line 17:
  
 
cd into new install dir, create a target home dir for aolserver, and  
 
cd into new install dir, create a target home dir for aolserver, and  
 
 
compile into a new target home dir:
 
compile into a new target home dir:
  
Line 50: Line 49:
  
 
www.aolserver.com has more
 
www.aolserver.com has more
 +
 +
see tcl for web nerds and www.tcl.tk for tcl programming info
 +
 +
www.postgresql.org is a nice database (years ahead of mysql many say)
  
 
[[Category: HOWTOs (English)]]
 
[[Category: HOWTOs (English)]]
 
[[Category: Daemons and system services (English)]]
 
[[Category: Daemons and system services (English)]]

Revision as of 19:10, 20 September 2007

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 www.aol.com and is massively scalable.

I refer to Prof P Greenspun of MIT http://philip.greenspun.com/wtr/aolserver/introduction-1.html

The README has install instructions as well.

install tcl with threads per the readme pacman -Sy tcl

grab aolserver and untar

wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz

untar aolserver

tar xzvf wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz

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)

http://localhost:8000

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

(aolserver target homdir)/servers/server1/pages

www.aolserver.com has more

see tcl for web nerds and www.tcl.tk for tcl programming info

www.postgresql.org is a nice database (years ahead of mysql many say)