mirror of https://gitee.com/bigwinds/arangodb
fixed Doxygen errors
Conflicts: Documentation/InstallationManual/Installing.md lib/BasicsC/locks-win32.c
This commit is contained in:
parent
f760d056df
commit
e68a98e837
|
@ -161,102 +161,139 @@ they may still require some Windows platform libraries to be present.
|
||||||
These libraries should be present on a Windows Vista, Windows 7, and
|
These libraries should be present on a Windows Vista, Windows 7, and
|
||||||
Windows 8 by default, but there may be issues with other platforms.
|
Windows 8 by default, but there may be issues with other platforms.
|
||||||
|
|
||||||
The Windows builds are available as `.msi` packages
|
The default installation directory is `c:\Program Files\ArangoDB-1.x.y`. During the
|
||||||
@EXTREF{http://www.arangodb.org/download/,here}.
|
installation process you may change this. In the following description we will assume
|
||||||
Please note that we provide binaries for 32 and 64 bit Windows, and
|
that ArangoDB has been installed in the location `<ROOTDIR>`.
|
||||||
that you need to choose the correct package for your platform.
|
|
||||||
|
|
||||||
The msi installer will install the ArangoDB server (arangod.exe), the
|
You have to be careful when choosing an installation directory. You need either
|
||||||
ArangoDB shell (arangosh.exe) and the ArangoDB import tool (arangoimp.exe)
|
write permission to this directoy or you need to modify the config file for the
|
||||||
in a directory of the user's choice (defaulting to `c:\triAGENS`).
|
server process. In the latter case the database directory and the Foxx directory
|
||||||
|
should must be writable by the user.
|
||||||
|
|
||||||
Included Files {#InstallingWindowsFiles}
|
Installating for a single user: Select a different directory during
|
||||||
----------------------------------------
|
installation. For example `C:/Users/<username>/arangodb` or `C:/ArangoDB`.
|
||||||
|
|
||||||
Included in the distribution are some `.bat` files that can be used
|
Installating for multiple users: Keep the default directory. After the
|
||||||
to easily start the ArangoDB server and shell. The `.bat` files will be
|
installation edit the file `<ROOTDIR>/etc/arangodb/arangod.conf`. Adjust the
|
||||||
installed in the same directory as ArangoDB so they should be easy to find.
|
`directory` and `app-path` so that these paths point into your home directory.
|
||||||
|
|
||||||
Along with ArangoDB some example configuration files (with `.conf` file
|
[database]
|
||||||
ending) will be installed. These configuration files are used by the
|
directory = @HOMEDRIVE@/@HOMEPATH@/arangodb/databases
|
||||||
batch files with the same name, and you might adjust them for your own
|
|
||||||
needs.
|
|
||||||
|
|
||||||
The following executables are provided:
|
[javascript]
|
||||||
- `arangod.exe`: the ArangoDB server binary
|
app-path = @HOMEDRIVE@/@HOMEPATH@/arangodb/apps
|
||||||
- `arangosh.exe`: the ArangoShell (arangosh) binary
|
|
||||||
- `arangoimp.exe`: an import tool for ArangoDB
|
|
||||||
- `arangodump.exe`: a dump tool for ArangoDB
|
|
||||||
- `arangorestore.exe`: a restore tool for ArangoDB
|
|
||||||
|
|
||||||
You can invoke any of the above executables on the command-line directly,
|
Create the directories for each user that wants to use ArangoDB.
|
||||||
however, to properly run each executable needs some configuration. The
|
|
||||||
configuration can be provided as command-line arguments when invoking the
|
|
||||||
executable, or be specified in configuration files.
|
|
||||||
|
|
||||||
ArangoDB is shipped with a few example configuration files and example
|
Installating as Service: Keep the default directory. After the installation open
|
||||||
batch files that can be used to easily invoke some of the executables with
|
a command line as administrator (search for `cmd` and right click `run as
|
||||||
the default configuration.
|
administrator`).
|
||||||
|
|
||||||
The following configuration files are provided:
|
cmd> arangod --install-service
|
||||||
- `arangod.conf`: configuration for the ArangoDB server, used by
|
INFO: adding service 'ArangoDB - the multi-purpose database' (internal 'ArangoDB')
|
||||||
`arangod.bat`, `console.bat`, and `upgrade.bat`
|
INFO: added service with command line '"C:\Program Files (x86)\ArangoDB 1.4.4\bin\arangod.exe" --start-service'
|
||||||
- `arangosh.conf`: configuration for the ArangoDB shell, used by
|
|
||||||
`arangosh.bat` and `foxx-manager.bat`
|
|
||||||
- `arangoimp.conf`: configuration for the ArangoDB import tool
|
|
||||||
- `arangodump.conf`: configuration for the ArangoDB dump tool
|
|
||||||
- `arangorestore.conf`: configuration for the ArangoDB restore tool
|
|
||||||
|
|
||||||
The following batch files are provided:
|
Open the service manager and start ArangoDB. In order to enable logging
|
||||||
- `arangod.bat`: starts the ArangoDB server, with networking enabled
|
edit the file "<ROOTDIR>/etc/arangodb/arangod.conf" and uncomment the file
|
||||||
- `console.bat`: starts the ArangoDB server in emergency console mode,
|
option.
|
||||||
with networking disabled
|
|
||||||
- `upgrade.bat`: upgrades an existing ArangoDB server
|
|
||||||
- `arangosh.bat`: starts the ArangoDB shell (requires an already
|
|
||||||
running ArangoDB server instance)
|
|
||||||
- `foxx-manager.bat`: installation utility for Foxx applications
|
|
||||||
|
|
||||||
Starting ArangoDB {#InstallingWindowsStarting}
|
[log]
|
||||||
----------------------------------------------
|
file = @ROOTDIR@/var/log/arangodb/arangod.log
|
||||||
|
|
||||||
To start the ArangoDB server, use the file `arangod.bat`. This wil start
|
Client, Server and Lock-Files{#InstallingWindowsFiles}
|
||||||
the ArangoDB server with networking enabled. It will use the configuration
|
------------------------------------------------------
|
||||||
specified in file `arangod.conf`. Once started, the ArangoDB server will
|
|
||||||
run until you terminate it pressing CTRL-C. Starting ArangoDB for the first
|
|
||||||
time will automatically create a database sub-directory in the directory
|
|
||||||
ArangoDB was installed in.
|
|
||||||
|
|
||||||
Once the ArangoDB server is running, you can use your browser to check
|
Please note that ArangoDB consists of a database server and client tools. If you
|
||||||
whether you can connect. Please navigate to confirm:
|
start the server, it will place a (read-only) lock file to prevent accidental
|
||||||
|
access to the data. The server will attempt to remove this lock file when it is
|
||||||
|
started to see if the lock is still valid - this is in case the installation did
|
||||||
|
not proceed correctly or if the server terminated unexpectedly.
|
||||||
|
|
||||||
|
Starting{#InstallingWindowsStarting}
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
To start an ArangoDB server instance with networking enabled, use the executable
|
||||||
|
`arangod.exe` located in `<ROOTDIR>/bin`. This will use the configuration
|
||||||
|
file `arangod.conf` located in `<ROOTDIR>/etc/arangodb`, which you can adjust
|
||||||
|
to your needs and use the data directory "<ROOTDIR>/var/lib/arangodb". This
|
||||||
|
is the place where all your data (databases and collections) will be stored
|
||||||
|
by default.
|
||||||
|
|
||||||
|
Please check the output of the `arangod.exe` executable before going on. If the
|
||||||
|
server started successully, you should see a line `ArangoDB is ready for
|
||||||
|
business. Have fun!` at the end of its output.
|
||||||
|
|
||||||
|
We now wish to check that the installation is working correctly and to do this
|
||||||
|
we will be using the administration web interface. Execute `arangod.exe` if you
|
||||||
|
have not already done so, then open up your web browser and point it to the
|
||||||
|
page:
|
||||||
|
|
||||||
http://127.0.0.1:8529/
|
http://127.0.0.1:8529/
|
||||||
|
|
||||||
Please note that when using ArangoDB's web interface with Internet Explorer
|
To check if your installation was successful, click the `Collection` tab and
|
||||||
(IE), you will need IE version 9 or higher to use all features. The web
|
open the configutation. Select the `System` type. If the installation was
|
||||||
interface partly relies on SVG, which is not available in previous versions
|
successful, then the page should display a few system collections.
|
||||||
of IE.
|
|
||||||
|
|
||||||
To start the ArangoDB shell (_arangosh_), use the batch file `arangosh.bat`
|
Try to add a new collection and then add some documents to this new collection.
|
||||||
while the ArangoDB server is already running.
|
If you have succeeded in creating a new collection and inserting one or more
|
||||||
|
documents, then your installation is working correctly.
|
||||||
|
|
||||||
If you already have a previous version of ArangoDB installed and want to
|
Advanced Starting{#InstallingWindowsAdvanced}
|
||||||
upgrade to a newer version, use the batch file `upgrade.bat` This will
|
---------------------------------------------
|
||||||
start ArangoDB with the `--upgrade` option and perform a migration of an
|
|
||||||
existing database. Please note that you need to stop a running ArangoDB
|
|
||||||
server instance before you upgrade.
|
|
||||||
Please also check the output of the `upgrade.bat` run for any potential
|
|
||||||
errors. If the upgrade completes successfully, you can restart the server
|
|
||||||
regularly using the `arangod.bat` script.
|
|
||||||
|
|
||||||
To run any of the ArangoDB executables in your own environment, you will
|
If you want to provide our own start scripts, you can set the environment
|
||||||
probably need to adjust the configuration. It is advised that you use a
|
variable `ARANGODB_CONFIG_PATH`. This variable should point to a directory
|
||||||
separate configuration file, and specify the configuration filename on the
|
containing the configuration files.
|
||||||
command-line when invoking the executable as follows (example for _arangod_):
|
|
||||||
|
|
||||||
> arangod.exe -c path\to\arangod.conf
|
Using the Client{#InstallingWindowsClient}
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
To connect to an already running ArangoDB server instance, there is a shell
|
||||||
|
`arangosh.exe` located in `<ROOTDIR>/bin`. This starts a shell which can be
|
||||||
|
used (amongst other things) to administer and query a local or remote
|
||||||
|
ArangoDB server.
|
||||||
|
|
||||||
|
Note that `arangosh.exe` does NOT start a separate server, it only starts the
|
||||||
|
shell. To use it, you must have a server running somewhere, e.g. by using
|
||||||
|
the `arangod.exe` executable.
|
||||||
|
|
||||||
|
`arangosh.exe` uses configuration from the file `arangosh.conf` located in
|
||||||
|
`<ROOTDIR>/etc/arangodb/`. Please adjust this to your needs if you want to
|
||||||
|
use different connection settings etc.
|
||||||
|
|
||||||
|
32bit{#InstallingWindows32Bit}
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
If you have an EXISTING database, then please note that currently a 32 bit
|
||||||
|
version of ArangoDB is NOT compatible with a 64 bit version. This means that
|
||||||
|
if you have a database created with a 32 bit version of ArangoDB it may
|
||||||
|
become corrupted if you execute a 64 bit version of ArangoDB against the same
|
||||||
|
database, and vice versa.
|
||||||
|
|
||||||
|
Upgrading{#InstallingWindowsUpgrading}
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
To upgrade an EXISTING database created with a previous version of ArangoDB,
|
||||||
|
please execute the server `arangod.exe` with the option
|
||||||
|
`--upgrade`. Otherwise starting ArangoDB may fail with errors.
|
||||||
|
|
||||||
|
Note that there is no harm in running the upgrade. So you should run this
|
||||||
|
batch file if you are unsure of the database version you are using.
|
||||||
|
|
||||||
|
You should always check the output for errors to see if the upgrade was
|
||||||
|
completed successfully.
|
||||||
|
|
||||||
|
Uninstalling{#InstallingWindowsUninstalling}
|
||||||
|
--------------------------------------------
|
||||||
|
|
||||||
|
To uninstall the Arango server application you can use the windows control panel
|
||||||
|
(as you would normally uninstall an application). Note however, that any data
|
||||||
|
files created by the Arango server will remain as well as the `<ROOTDIR>`
|
||||||
|
directory. To complete the uninstallation process, remove the data files and
|
||||||
|
the `<ROOTDIR>` directory manually.
|
||||||
|
|
||||||
Limitations for Cygwin{#InstallingWindowsCygwin}
|
Limitations for Cygwin{#InstallingWindowsCygwin}
|
||||||
-------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
Please note some important limitations when running ArangoDB under Cygwin:
|
Please note some important limitations when running ArangoDB under Cygwin:
|
||||||
Starting ArangoDB can be started from out of a Cygwin terminal, but pressing
|
Starting ArangoDB can be started from out of a Cygwin terminal, but pressing
|
||||||
|
|
Loading…
Reference in New Issue