Changes

Jump to navigation Jump to search
258 bytes added ,  20:36, 5 December 2017
m
update description to correspond with last edit
BaseX server can be configured to run as an always-on service in Windows (or daemon in Linux) using [http://yajsw.sourceforge.net/ YAJSW].
 
== Some basics of YAJSW ==
YAJSW comes with some helpful convenience scripts in the 'bat' and 'bin' folders. This set of instructions does not use these convenience scripts.
 
== Gather the files ==
* Download the latest version of [http://basex.org/products/download/all-downloads/ BaseX]. Select the Zip Archive. * Download the latest version of [https://sourceforge.net/projects/yajsw/ YAJSW].* Download the latest version of [http://java.com/en/download/manual.jsp Java].
== Install BaseX as a Windows Service ==
The instructions on this page are known to work using Windows Server 2012R2, BaseX 8.4.2, YAJSW 12.05 beta, Java 1.8.0_77 64-bit from Oracle.
 
=== Install Java ===
Install Java using the Java installer for your operating system. Use a 64-bit version if you can.
 
=== Put files into position ===
# Extract YAJSW to <code>C:\Programs\yajsw\yajsw-beta-12.05</code>
# Extract BaseX to <code>C:\Programs\BaseX\basex</code>
 
=== Install BaseX as a service ===
* Specify the location of java.exe
* Increase Change the amount of memory available to BaseX from 512m 1024m (for example, 512m or 2048m)
<pre>
# YAJSW configuration for BaseX
wrapper.java.command=C:/Program FilesProgramData/Oracle/Java/jre1.8.0_77/binjavapath/java.exe
wrapper.working.dir=C:\\Programs\\BaseX\\basex
wrapper.java.classpath.1 = .\\BaseX.jar
wrapper.java.classpath.2 = .\\lib\\*.jar
wrapper.java.classpath.3 = .\\lib\\custom\\*.jar
wrapper.java.additional.1 = -Xmx512mXmx1024m
wrapper.java.additional.2 = -Dfile.encoding=utf-8
wrapper.ntservice.displayname=BaseX
wrapper.ntservice.description=BaseX XQuery database
wrapper.ntservice.starttype=DELAYED_AUTO_START
wrapper.console.loglevel=INFO
After you have created the wrapper configuration file:
# Open a command prompt as administrator and navigate # Navigate to the YAJSW folder : <code>cd C:\Programs\yajsw\yajsw-beta-12.05</code>
# Install the service: <code>java -jar wrapper.jar --install conf\wrapper.basex.conf</code>
# Start the service: <code>java -jar wrapper.jar --start conf\wrapper.basex.conf</code>
administrator, editor
12

edits

Navigation menu