Difference between revisions of "User:Bootiack/AOLserver"

From ArchWiki
Jump to: navigation, search
Line 3: Line 3:
 
I refer to Prof P Greenspun of MIT http://philip.greenspun.com/wtr/aolserver/introduction-1.html
 
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
 
pacman -Sy tcl
  
grab aolserver and untar, cd aolserver4.5
+
grab aolserver and untar
 
+
wget http://aolserver.com/files/aolserver-HEAD-src.tar.gz
/usr/bin/tclsh ./nsconfig.tcl -install /a/dir/of/your/choice
+
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
 
make install clean
  
Line 16: Line 23:
 
         to get started:
 
         to get started:
  
         % cd /a/dir/of/your/choice
+
         % cd (target home dir for aolserver)
 
         % cp base.tcl nsd.tcl
 
         % cp base.tcl nsd.tcl
         % vi 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  
 
         Additional configuration examples can be found in the  
Line 25: Line 32:
 
3e.    Try running the server in a shell window:
 
3e.    Try running the server in a shell window:
  
         % cd /a/dir/of/your/choice
+
         % cd (target aolserver home)
         % bin/nsd -ft nsd.tcl
+
         % bin/nsd -ft nsd.tcl -u (a user you like)
  
 
http://localhost:8000
 
http://localhost:8000
  
 +
#place new pages you wget and rename xyz.html in the pages directory
 +
(aolserver target homdir)/servers/server1/pages
 +
 +
www.aolserver.com has more
  
 
[[Category: HOWTOs (English)]]
 
[[Category: HOWTOs (English)]]
 
[[Category: Daemons and system services (English)]]
 
[[Category: Daemons and system services (English)]]

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