Installing and Using |
![]() |
Installing GNU-Paperclips on Hurd, Linux or Windows
Running GNU-Paperclips
gunzip gnupaperclips.tar.gz
tar xvf gnupaperclips.tar
./paperclips.sh
Note: Windows users must download gzip to do this. You can get gzip from here.
gzip -d gnupaperclips.gz
paperclips.bat
The following is a list of some of these parameters. All attribute names
are prefixed with the package name of gnu.paperclips.
| Attribute name | Use | Default value |
| threads | the number of threads to start in the HTTP server. |
20
|
| port | the TCP port number to start the HTTP server on |
7171
|
| servinfo | the string that will be returned by the ServletContext.getServerInfo() method. | GNU-Paperclips Web Server 1999 |
| logstamp | the string printed at the start of each logging message | Paperclips |
| docroot | the directory name of any document root for a web server hosted by GNU-Paperclips | /paperclips/docs |
| stacktrace | true or false depending on whether you want stack traces to appear in any exceptions that are logged | true |
| chunkedencodingbuffersize | an integer which specifies how big an individual chunk should be in bytes |
5000
|
| contentlengthbuffersize | an integer which specifies how big the buffer should be when doing content-length buffering; if a servlet's output exceeds this then the content-length will not be set by Paperclips; the value is expressed in bytes |
20000
|
Here is an example of how to run Paperclips and set some attributes to start the server with 500 connection handlers on port 8080 and taking documents from the /docs directory:
./paperclips.sh gnu.paperclips.threads=500 \Notes:
gnu.paperclips.port=8080 \
gnu.paperclips.docroot=/docs
| Created: 1 July 1999 | Last Updated: | Contact: webmaster | Author: Nic Ferrier |