Changes

Jump to navigation Jump to search
1,372 bytes added ,  22:39, 23 January 2011
no edit summary
==BaseX Server==
;Console command Launch the server:<codepre>
> basexserver
</code> If the server has been succesfully started, this is coming up:<pre>BaseX [Server]
Server was started.</pre>
Additional Available command-line flags options can be listed by adding with the <code>-h</code> to the callflag::<codepre>
> basexserver -h
</code>
<pre>
Usage: BaseXServer [-dpsz] [-c] [stop]
stop Stop existing server
</pre>
The command-line flags options have the following meaning:
{| class="wikitable"
|- valign="top"
| <code>-p&lt;num&gt;</code>
| Specify the port on which the server can will be addressedaddressable.
| <code>-p9999</code>
|- valign="top"
;Launch interactive mode
 The user name and password will be requested. The default user/password combination is '''admin'''/'''admin''':<codepre>
> basexclient
</code> The user name and password is requested. The default user/password combination is '''admin'''/'''admin''': <pre>Username: admin
Password:
&gt; _</pre>
Available command-line flags options can be listed by adding with the <code>-h</code> to the callflag::<codepre>
> basexclient -h
</code>
<pre>
Usage: BaseXClient [-npPU] [-dovVwz] [-cq] [file]
[file] Execute XQuery file
</pre>
The command-line flags options have the following meaning:
{| class="wikitable"
;Launch the interactive mode:
:<codepre>
> basex
BaseX [Standalone]Try "help" to get more information.>_</codepre>
Available command-line options can be listed with the <code>-h</code> flag:
:<codepre>
> basex -h
</code>
<pre>
Usage: BaseX [-diosuvVwz] [-cq] [file]
[file] Execute XQuery file
</pre>
The command-line flags options have the following meaning:
{| class="wikitable"
;Launch the JAX-RX server
:<codepre>
> basexrest
Starting REST server on port 8984...BaseX [Server]Server was started.2011-01-02 03:04:05.600:INFO::Logging to STDERR via org.mortbay.log.StdErrLog2011-01-02 03:04:05.700:INFO::jetty-6.1.252011-01-02 03:04:05.800:INFO::Started SocketConnector@0.0.0.0:8984</codepre>
Available command-line options can be listed with the <code>-h</code> flag:
:<codepre>
> basex -h
</code>
<pre>
Usage: JaxRxServer [-pPrsUz]
-p<num> Set database server port
! Description
! width='165' | Examples
|- valign="top"
| <code>-p&lt;num&gt;</code>
| The port on which the BaseX Server will be addressable. The default port is '''1984'''.
| <code>-p9998</code>
|- valign="top"
| <code>-r&lt;num&gt;</code>
| The port on which the REST Server will be addressable. This port will be specified in the REST URLs (default: <code>8984</code>). The default port is '''8984'''.
| <code>-r9999</code>
|- valign="top"
| <code>-P&lt;pass&gt;</code>
| The user password, which will be used by JAX-RX to communicate with the BaseX Server. The default password is '''admin'''. ''Warning'': when the password is specified on command-line, it may be visible to others.
| <code>-Uadmin -Padmin</code>
|- valign="top"
| <code>-s&lt;pars&gt;</code>
| Specify parameters for serializing XQuery results, as specified in the [http://www.w3.org/TR/xslt-xquery-serialization/ W3C XQuery Serialization] document. Key/value pairs are separated by equality signs (<code>=</code>).
| <code>-sencoding=US-ASCII</code>
|- valign="top"
| <code>-U&lt;name&gt;</code>
| The user name, which will be used by JAX-RX to communicate with the BaseX Server. The default user is '''admin'''.
| <code>-Uadmin -Padmin</code>
|- valign="top"
| <code>-z</code>
| Do not generate [[Logging|log files]].
|
|}
[[Category:Beginner]]
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu