Difference between revisions of "User:Bootiack/AOLserver"

From ArchWiki
Jump to: navigation, search
Line 9: Line 9:
  
 
grab aolserver and untar
 
grab aolserver and untar
 +
 
wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
 
wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
 +
 
untar aolserver
 
untar aolserver
 +
 
tar xzvf wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
 
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:
+
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)
 
mkdir (whatever; example /opt/aolserver)
 +
 
/usr/bin/tclsh ./nsconfig.tcl -install (whatever you want example: /opt/aolserver)
 
/usr/bin/tclsh ./nsconfig.tcl -install (whatever you want example: /opt/aolserver)
 +
 
make install clean
 
make install clean
  
Line 38: Line 46:
  
 
#place new pages you wget and rename xyz.html in the pages directory
 
#place new pages you wget and rename xyz.html in the pages directory
 +
 
(aolserver target homdir)/servers/server1/pages
 
(aolserver target homdir)/servers/server1/pages
  

Revision as of 19:09, 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