Difference between revisions of "User:Bootiack/AOLserver"

From ArchWiki
Jump to: navigation, search
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
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.
+
{{poor writing}}
 +
{{stub}}
 +
=INSTALLING Aolserver 4.5 http://www.aolserver.com http://www.tcl.tk
  
I refer to Prof P Greenspun of MIT http://philip.greenspun.com/wtr/aolserver/introduction-1.html
+
What are the advantages over any other web server?
  
pacman -Sy tcl
+
20x Faster and massively scalable, and has all the features of an appserver builtin.
  
grab aolserver and untar, cd aolserver4.5
+
Phil Greenspun said it best:
 +
http://philip.greenspun.com/wtr/aolserver/introduction-1.html
  
/usr/bin/tclsh ./nsconfig.tcl -install /a/dir/of/your/choice
+
notes on Installation: (read README)
  
make install clean
+
get+compile your own tcl 8.4: (example)
 +
./configure --prefix=/opt/tcl --enable-threads --enable-shared
 +
make
 +
make install
  
[from README]
+
I pop it in my path:
3d.    Once the binaries are built and installed, create and edit
+
ln -s /opt/tcl/bin/tclsh8.4 /usr/bin/tclsh
        a config file, nsd.tcl by convention. A sample is provided
+
        to get started:
+
  
        % cd /a/dir/of/your/choice
+
was a real bitch for me on Arch Linux this time around after it was easy before; until a guy named frankie on irc chat #aolserver (freenode server) gave me the following:
        % cp base.tcl nsd.tcl
+
        % vi nsd.tcl
+
  
        Additional configuration examples can be found in the
+
In aolserver-4.5/configure, comment out the below lines, and add right below them:
        examples/config directory.
+
  
3e.    Try running the server in a shell window:
+
# case "$LDLIB" in
 +
# *gcc*)
 +
# LDLIB="$LDLIB -nostartfiles"
 +
# ;;
 +
# esac
 +
LDLIB="$LDLIB -nostartfiles"
  
        % cd /a/dir/of/your/choice
+
this now works:
        % bin/nsd -ft nsd.tcl
+
/path/to/tclsh8.4 nsconfig.tcl -install /aolservers_new_dir
 +
make
 +
make install
  
http://localhost:8000
+
In /etc/hosts you must have the ip of your nic matching `uname -n`
  
 +
after you cp base.tcl to nsd.tcl; you must
 +
chown -R your_user: /aolservers_new_dir
 +
vi /etc/ld.so.conf and add path to tcl and aolserver /lib directory
 +
close and run ldconfig
  
[[Category: HOWTOs (English)]]
+
cp -p base.tcl nsd.tcl
[[Category: Daemons and system services (English)]]
+
 
 +
bin/nsd -ft nsd.tcl -u your_user &  will start the server on port 8000.
 +
 
 +
then tune into http://your_ip:8000 and blam! your in bizness
 +
 
 +
fro a little guidance check out http://philip.greenspun.com/tcl/
 +
 
 +
 
 +
== Resources ==
 +
*[http://en.wikipedia.org/wiki/AOLserver AOLserver on Wikipedia]
 +
:AOLserver's Wikipedia page, with slightly more background and history.
 +
 
 +
 
 +
[[Category:Web Server]]
 +
[[Category:Daemons and system services]]

Revision as of 15:09, 23 April 2012

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements.Tango-edit-clear.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in User talk:Bootiack/AOLserver#)

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in User talk:Bootiack/AOLserver#)

=INSTALLING Aolserver 4.5 http://www.aolserver.com http://www.tcl.tk

What are the advantages over any other web server?

20x Faster and massively scalable, and has all the features of an appserver builtin.

Phil Greenspun said it best: http://philip.greenspun.com/wtr/aolserver/introduction-1.html

notes on Installation: (read README)

get+compile your own tcl 8.4: (example)

./configure --prefix=/opt/tcl --enable-threads --enable-shared
make
make install

I pop it in my path:

ln -s /opt/tcl/bin/tclsh8.4 /usr/bin/tclsh

was a real bitch for me on Arch Linux this time around after it was easy before; until a guy named frankie on irc chat #aolserver (freenode server) gave me the following:

In aolserver-4.5/configure, comment out the below lines, and add right below them:

# case "$LDLIB" in
# *gcc*)
# LDLIB="$LDLIB -nostartfiles"
# ;;
# esac
LDLIB="$LDLIB -nostartfiles"
this now works:
/path/to/tclsh8.4 nsconfig.tcl -install /aolservers_new_dir
make
make install

In /etc/hosts you must have the ip of your nic matching `uname -n`

after you cp base.tcl to nsd.tcl; you must 
chown -R your_user: /aolservers_new_dir 

vi /etc/ld.so.conf and add path to tcl and aolserver /lib directory close and run ldconfig

cp -p base.tcl nsd.tcl

bin/nsd -ft nsd.tcl -u your_user & will start the server on port 8000.

then tune into http://your_ip:8000 and blam! your in bizness

fro a little guidance check out http://philip.greenspun.com/tcl/


Resources

AOLserver's Wikipedia page, with slightly more background and history.