Changes

Jump to navigation Jump to search
441 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 Linux) using This page is part of the [[http://yajsw.sourceforge.net/ YAJSWDeveloper Section]]. 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.
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 ==
== Gather * Download the files ==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].
* Download the latest version of == Install BaseX* Download the latest version of YAJSW* Download the latest version of Javaas 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 ===
These instructions assume you will be placing BaseX and YAJSW in C:\Programs, but you can choose a different location.
# Extract BaseX to <code>C:\Programs\BaseX\basex</code>
 === Install BaseX as a service ===
Create wrapper config file <code>wrapper.basex.conf</code> and place it in YAJSW's <code>conf</code> folder. You can use the example below. You may need to modify this example to:
* 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>
 
BaseX server is now running as a service, and will start automatically when Windows starts. At this point you should go ahead and set a password for the admin user.
 
# Open a web browser and go to http://localhost:8984/dba (or http://host:8984/dba from your computer, replace 'host' with the address of the server) to open the database administration web console.
# Log in with username 'admin' password 'admin'
# Click on the ''admin'' user
# Set a password for the admin user and then click Save.
 
 
BaseX server is now running as a service, and will start automatically when Windows starts.
administrator, editor
12

edits

Navigation menu