Changes

Jump to navigation Jump to search
53 bytes added ,  03:59, 27 August 2012
Usage: basexhttp [-dehlnpPRUWz] [stop]
stop Stop running server
-c Start in client mode
-d Activate debugging mode
-e<numport> Set event port -h<numport> Set port of HTTP server
-l Start in local mode
-n<name> Set host name of database server
-p<numport> Set port of database server
-P<pass> Specify user password
-R Deactivate REST service -s <port> Specify port to stop HTTP server
-S Start as service
-U<name> Specify user name
-W Deactivate WebDAV service
-X Deactivate RESTXQ service
-z Suppress logging
</pre>
| {{Code|stop}}
| Stops a running HTTP server. By default, the database server will be stopped as well, unless one of the flags {{Code|-c}} or {{Code|-l}} is specified.
|
|
|
|- valign="top"
| {{Code|-c}}
| Starts the server in ''client mode'', and sends all commands to a database server instance.
|
|
|- valign="top"
| {{Code|-h&lt;num&gt;}}
| Specifies the port on which the HTTP server will be addressable. This port is e.g. specified in the HTTP URLs.
| <code>[[Options#HTTPPORT|HTTPPORT]]</code>
| {{Code|8984}}
|- valign="top"
| {{Code|-R}}
| Deactivates the [[REST]] service. This flag has been removed in {{Version|7.4}}; all servlets are now specified in the {{Code|web.xml}} configuration file.
|
|
|- valign="top"
| {{Code|-W}}
| Deactivates the [[WebDAV]] service. This flag has been removed in {{Version|7.4}}; all servlets are now specified in the {{Code|web.xml}} configuration file.
|
|
|- valign="top"
| {{Code|-X}}
| Deactivates the [[RESTXQ]] service. This flag has been removed in {{Version|7.4}}; all servlets are now specified in the {{Code|web.xml}} configuration file.
|
|
|}
Some additional options can also be triggered by setting the following system properties:
* {{Code|org.basex.user}}: user name for opening new sessions
* {{Code|org.basex.password}}: user password for opening new sessions
* {{Code|org.basex.modeserver}}: by default, the HTTP server also starts an instance of the database server. If the mode is set to {{Code|local}}, an embedded database context is used for executing commands. If the mode is set to {{Code|client}}, all commands are sent to an existing database server instance.
* {{Code|org.basex.path}}: path to the BaseX [[Configuration|Home Directory]]
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu