荔园在线

荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀

[回到开始] [上一篇][下一篇]


发信人: Lg (创造人生的传奇), 信区: Linux
标  题: Avenida: Scaling Your Servers
发信站: BBS 荔园晨风站 (Sun Dec 12 15:43:09 1999), 站内信件

Merging Linux and Java on the Server Side
Avenida: Scaling Your Servers

Kevin Reichard

Avenida is an inexpensive Web server that's both scalable and centrally
managed. When you
unarchive the Avenida distribution, you're presented with Java code and some
documentation files. The documentation file that details the installation is
clear as how to
set up the Avenida server; more complete documentation on actually using the
Avenida
Web server can be found at the Avenida Web site.

No matter how many separate servers you're running, you can set each of their
behaviors in
a central http.properties file, a simple text file that can be edited with any
text editor (vi,
emacs, etc.). Within this file, you can run down a list of properties and then
set the values
for those properties. Since each property is associated with a specific server,
you can't set
general properties. This could be a drawback if you were planning on running
many servers,
which isn't likely given the nature of Avenida and Java, so in most cases this
isn't a major
limitation.

If you don't want to edit the http.properties file with a text editor, you can
use the
Administration Tool, which sports a graphical user interface, to change the
behaviors of a
specific server and write the results to the http.properties file. The
Administration Tool also
serves as the general interface to your servers, allowing you to start, stop,
and manage
them. Most users will want to use the Administration Tool to manage their Web
server,
since it's a very easy to use program. Many Web servers (i.e., Apache) are
sorely in need of
good administrative tools (some are on the way for Apache), and Avenida starts
out with a
distinct advantage thanks to its Administration Tool.

When you run the Administration Tool, you're given a screen that checks for
which servers
are initialized and then returns information on the exact status of each
server. The initial
installation will set up a default server on port 8000, which should serve the
purposes of
most Web-server managers. Buttons allow you to start and stop servers on
demand. You
can add functionality by installing specific add-on servlets, several of which
are included
with Avenida (you can also create your own servlets). For instance, there's a
servlet that
sets up a proxy or automatically sends proxy requests to another server. By
default,
Avenida is set up to run with proxy functionality enabled.

Setting up a new server isn't difficult, especially if you've set up a Web
server before. After
telling Avenida that you want to create a new server and then naming the new
server, all
you need to do is configure and then start the server. Configuration involves
specifying a
port and document root directory, then setting up new URL and MIME mappings.

The one area where Avenida falls short is in its support policies. There's no
phone or fax
support if you purchase a commercial license. The Avenida folks say that this
lack of
support translates into lower prices for the software--and it is certainly true
that Avenida is
inexpensive when compared to Web servers from the likes of Netscape. However,
some
additional support--whether it's offered for an additional fee or limited to
the first 30 days
after purchasing Avenida--would be a welcome benefit for users.

Avenida is among the first of what will undoubtedly be a new wave of Web
servers: small,
nimble, and truly cross-platform apps that offer the best in performance and
ease of use.
It's definitely worth a look, especially if you're committed to the Java
environment.

--
☆ 来源:.BBS 荔园晨风站 bbs.szu.edu.cn.[FROM: bbs@210.39.3.71]


[回到开始] [上一篇][下一篇]

荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店