diff --git a/VS2012/Installer/arango32.xml b/VS2012/Installer/arango32.xml new file mode 100755 index 0000000000..57b02c3361 --- /dev/null +++ b/VS2012/Installer/arango32.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/VS2012/Installer/arango64.xml b/VS2012/Installer/arango64.xml new file mode 100755 index 0000000000..3f3dfd5dad --- /dev/null +++ b/VS2012/Installer/arango64.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/VS2012/Installer/consoleExample.bat b/VS2012/Installer/consoleExample.bat new file mode 100755 index 0000000000..1d4a88c757 --- /dev/null +++ b/VS2012/Installer/consoleExample.bat @@ -0,0 +1,94 @@ +@echo off +:: ################################################################# +:: # script to start the arango server in windows +:: ################################################################# +cls +break=off +setlocal enableextensions + + +SET ACTION_DIR=".\js\actions\demo" +SET ACTION_SYS_DIR=".\js\actions\system" +SET GC=20 +SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node" +SET STARTUP_DIR=".\js" +SET APP_PATH=".\js\apps" +SET PACKAGE_PATH=".\js\npm" + + + + +SET DATABASE_DIR=".\data" +SET HTTP_PORT=tcp://127.0.0.1:8529 +SET LOG_LEVEL=info + + +:: ################################################################## +:: # Since we have set the database dir to be .\data, check that it +:: # really exists, if not create it - otherwise arangodb will exit! +:: ################################################################## +if EXIST ".\data" goto CHECK_LOCK +mkdir data +if NOT EXIST ".\data" ( + echo Error when attempting to create data directory ... exiting + goto END +) + +:CHECK_LOCK +:: ################################################################## +:: # Check for the pid lock file and delete it. +:: # This indicates abnormal termination. +:: ################################################################## + +if EXIST ".\data\lock" goto DEL_LOCK + +:DEL_LOCK +echo removing lock file +del /F .\data\lock > NUL +if EXIST ".\data\lock" ( + echo ======================================================================================= + echo ERROR: There appears to be a lock file which is in use. This is generally caused + echo by starting a second server instance before the first instance has terminated. + echo If you are certain that no other arango database server instances are active, + echo you may attempt to manually remove the lock .\data\lock. + echo ACTION: Session ends. + echo ======================================================================================= + goto END +) +goto START_ARANGO + + + +:START_ARANGO +:: ################################################################## +:: # set the command line parameters +:: ################################################################## + +SET CMD= +SET CMD=%CMD% --server.endpoint %HTTP_PORT% +SET CMD=%CMD% --database.directory %DATABASE_DIR% +SET CMD=%CMD% --server.disable-authentication true +SET CMD=%CMD% --log.level %LOG_LEVEL% +SET CMD=%CMD% --log.severity human +SET CMD=%CMD% --javascript.action-directory %ACTION_SYS_DIR% +SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD% +SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR% +SET CMD=%CMD% --javascript.app-path %APP_PATH% +SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH% +SET CMD=%CMD% --server.threads 4 +SET CMD=%CMD% --scheduler.threads 4 +:: the default size is 32M. change this if required - especially in the 32 bit version +:: SET CMD=%CMD% --database.maximal-journal-size 1048576 +SET CMD=%CMD% --console + +echo starting arangod.exe in server mode +echo with %CMD% + +arangod.exe %CMD% +goto END + + + + +:END + diff --git a/VS2012/Installer/readme.txt b/VS2012/Installer/readme.txt new file mode 100755 index 0000000000..975bc8fa03 --- /dev/null +++ b/VS2012/Installer/readme.txt @@ -0,0 +1,117 @@ +Notes: + + ---------------------------------------------------------------------------------------- + -- Full documentation is available online at: -- + -- http://www.arangodb.org/manuals/current/ -- + ---------------------------------------------------------------------------------------- + + + *************************************************************************** + **** Please read sections 5 & 6 below if you have an existing database **** + *************************************************************************** + +1) The default installation directory is c:\triAGENS. During the installation process + you may change this. In what follows we will assume that ArangoDB has been installed + in the default location. (Replace c:\triAGENS with your path if this is not the case.) + +2) In the examples which follow all data will be stored in the directory + c:\triAGENS\data. There are three example server batch files in the installation + directory. These three server batch files will automatically create the data directory + 'c:\triAGENS\data' if it does not exist. When the Arango database server is started + with the data directory 'c:\triAGENS\data' it places a (read-only) lock file to prevent + accidental access to the data. The example batch files will attempt to remove these lock + files when they are started - this is in case the installation did not proceed + correctly or if the server terminated unexpectedly. (Please note, if you attempt + to start the server twice using one of the example batch files - the scripts will fail.) + +3) The first server example batch file is called 'consoleExample.bat' and as the name + suggests it starts the Arango database server in emergency console mode. + Execute this batch file and you will be presented with the command line: + arangod> + To exit the console type CTRL-D (Press the Control Key with D). + Please see the online documentation to see how to access the database using the + console. + +4) The second server example batch file is called 'serverExample.bat' and actually starts the + server as a server. If you open the serverExample.bat (with your favourite text editor) + you will observe that the Arango database server executable is started with some + default arguments. See the online documentation for further details on starting the + server. We now wish to check that the installation is working correctly and to do this + we will be using the administration web interface. Execute 'serverExample.bat' 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/_admin/html/index.html + To check if your installation is successful, on the right hand side of the web page + click the "Filter" drop down and select the "System" TYPE. If the installation was + successful, then the page should display a few system collections (note that the order + may be different from that below): + _aal + _aqlfunctions + _fishbowl + _graphs + _ids + _modules + _routing + _structures + _trx + _users + + + Try to add a new collection and then add some documents to this new collection. + If you have succeeded in creating a new collection and inserting one or more + documents, then your installation is working correctly. (The 'New Collection' + link is located on the front admin page on the top left hand side. Don't forget + to click 'Save Collection'.) + +5) If you have an EXISTING database, then please note that currently a 32 bit version + of an Arango database is NOT compatible with a 64 bit version. This means that if you + have a database created with a 32 bit version of Arango it may become corrupted if you + execute a 64 bit version of Arango against the same database. We are working on a "load/dump" + facility which will allow you to "dump" the contents of your database from one platform + and "load" this database onto another platform (with a possibly different architecture). + +6) The third server example batch file is called 'upgradeExample.bat'. If you have an + EXISTING database created with an previous version of ArangoDB, then you must execute this + upgrade script, otherwise the scripts described in 3) & 4) above WILL FAIL (however your + database will not be compromised). The current windows release (version) can be obtained by + executing the following on a Command Prompt: + + c:\triAGENS\arangod.exe --version + + You can then compare the version of your database by issuing the following on a Command + Prompt: + + type c:\triAGENS\data\version + + The first few characters which are output will indicate the version of the database which + can then be compared to the version of the server. + + Note that there is no harm in running this upgradeExample.bat script. So you should run this + batch file if you are unsure of the database version you are using. + + +7) In addition to the server example batch files discussed above, there is an + additional example shell batch file. This starts a shell which can be used + (amongst other things) to connect to a remote Arango database server. + Note this example shell batch file (shellExample.bat) does NOT start a separate + server, it only starts the shell. To connect to the server, execute the batch + file serverExample.bat in a separate process first, then when the server is + ready, execute the shellExample.bat batch file. + +8) 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 c:\triAGENS directory. + To complete the uninstallation process, remove the data files and the + c:\triAGENS directory manually. + + +If you have any questions regarding the installation or other matters please use +http://groups.google.com/group/arangodb + + +For bug reports please use https://github.com/triAGENS/ArangoDB/issues + + +Thanks for choosing ArangoDB! + + + diff --git a/VS2012/Installer/server.pem b/VS2012/Installer/server.pem new file mode 100755 index 0000000000..108998782f --- /dev/null +++ b/VS2012/Installer/server.pem @@ -0,0 +1,29 @@ +-----BEGIN CERTIFICATE----- +MIICKTCCAZICCQDrch/8O8H4PTANBgkqhkiG9w0BAQUFADBZMQswCQYDVQQGEwJE +RTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0 +cyBQdHkgTHRkMRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTIwNzI0MDYxNzUwWhcN +MTMwNzI0MDYxNzUwWjBZMQswCQYDVQQGEwJERTETMBEGA1UECAwKU29tZS1TdGF0 +ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRIwEAYDVQQDDAls +b2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMDwRweF75H+BFBY +m9c4V/AZyWehxQ+pRfy6d+oPiUbOByqLDEQBdiMamQ0acJX9sn+MsFixEDRC1Y8r +ef49k1hb9V/pPtSFPVl5y8Db4FiDabKD9juUvNRqCXAzu99dwJwFZU2Ldq4BiCmf +8V0SO+nHJHs3+HNgbYU+g77Fax7dAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEASYfI +Afq5lRn+XoESn+PQ89XJ83Jr5mJhDkT7ebw+w1CQsnR9uYIeAYNxOyb3bfHOntnz +3irGYJWkrewVYjNkID8jhZSYEOZkfC4jxNLigg7QXyw/XWwwCIEr8/ZW+cnci43G ++IhSspyoJnljELM99ZsW0IaBLT+tgHzep4bIh0Y= +-----END CERTIFICATE----- +-----BEGIN RSA PRIVATE KEY----- +MIICXgIBAAKBgQDA8EcHhe+R/gRQWJvXOFfwGclnocUPqUX8unfqD4lGzgcqiwxE +AXYjGpkNGnCV/bJ/jLBYsRA0QtWPK3n+PZNYW/Vf6T7UhT1ZecvA2+BYg2myg/Y7 +lLzUaglwM7vfXcCcBWVNi3auAYgpn/FdEjvpxyR7N/hzYG2FPoO+xWse3QIDAQAB +AoGBALsP+34C0M02gI456xbXDQPArLJqePp/P1kSnbL0zz80AGSyHflNhXHxltTK +fsAeElNyX4QOYEybRB2kpInov5KrL3lR926GY++otHpSAue+PfLJHH8OU8qjartw +KGlzdnFFYQVLNc0qYGl/h0MxH6+Ce8JV0y1zI4J3nwMwCZwBAkEA6uqluGj4SXIj +6W+FefuHlHXgFn+TZgsGNNmmCMhLJPUUP7auIagtG1n12mN47kWqhLu3asLEVq4+ +YnCEa0hF3QJBANJBKN/zyfmvkiET33cY03282gSN0YLyibMYoNDOOYMFEW2b+3oF +x0d40FfEkYS0R4rJiR1HI8xWw8uQEWsXLQECQQDRx1DN6Q8vpznij7BGShO8w7ak +4LAkA9w6/dGDLjnMev7mFqBRdfkx35foucOYI6YueeNE90CVl2wmRAw8MYIRAkEA +qUUgPTyuDMCWqt6u99ka243hD+2FESFmTrOzNKfykVLRNydvDEv+pcHUKfTtGqNx +PYEHTHTrkyT/OLFh9I+SAQJAOntw15vhgKiy0DUvjSvXGJziBDPsu/MCZ2CZbaVx +ipkUZQCZLd/HvMphAiirLV+mAJQC732KKlR9/HWRzDDFEQ== +-----END RSA PRIVATE KEY----- diff --git a/VS2012/Installer/serverExample.bat b/VS2012/Installer/serverExample.bat new file mode 100755 index 0000000000..fd451d0ba5 --- /dev/null +++ b/VS2012/Installer/serverExample.bat @@ -0,0 +1,92 @@ +@echo off +:: ################################################################# +:: # script to start the arango server in windows +:: ################################################################# +cls +break=off +setlocal enableextensions + + +SET ACTION_DIR=".\js\actions" +SET GC=20 +SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node" +SET STARTUP_DIR=".\js" +SET APP_PATH=".\js\apps" +SET PACKAGE_PATH=".\js\npm" + + + +SET DATABASE_DIR=".\data" +SET HTTP_PORT=tcp://127.0.0.1:8529 +SET LOG_LEVEL=info + + +:: ################################################################## +:: # Since we have set the database dir to be .\data, check that it +:: # really exists, if not create it - otherwise arangodb will exit! +:: ################################################################## +if EXIST ".\data" goto CHECK_LOCK +mkdir data +if NOT EXIST ".\data" ( + echo Error when attempting to create data directory ... exiting + goto END +) + +:CHECK_LOCK +:: ################################################################## +:: # Check for the pid lock file and delete it. +:: # This indicates abnormal termination. +:: ################################################################## + +if EXIST ".\data\lock" goto DEL_LOCK + +:DEL_LOCK +echo removing lock file +del /F .\data\lock > NUL +if EXIST ".\data\lock" ( + echo ======================================================================================= + echo ERROR: There appears to be a lock file which is in use. This is generally caused + echo by starting a second server instance before the first instance has terminated. + echo If you are certain that no other arango database server instances are active, + echo you may attempt to manually remove the lock .\data\lock. + echo ACTION: Session ends. + echo ======================================================================================= + goto END +) +goto START_ARANGO + + + +:START_ARANGO +:: ################################################################## +:: # set the command line parameters +:: ################################################################## + +SET CMD= +SET CMD=%CMD% --server.endpoint %HTTP_PORT% +SET CMD=%CMD% --database.directory %DATABASE_DIR% +SET CMD=%CMD% --server.disable-authentication true +SET CMD=%CMD% --server.disable-admin-interface false +SET CMD=%CMD% --log.level %LOG_LEVEL% +SET CMD=%CMD% --log.severity human +SET CMD=%CMD% --javascript.action-directory %ACTION_DIR% +SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD% +SET CMD=%CMD% --javascript.app-path %APP_PATH% +SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH% +SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR% +SET CMD=%CMD% --server.threads 4 +SET CMD=%CMD% --scheduler.threads 4 +:: the default size is 32M change this if required - especially in the 32 bit version +:: SET CMD=%CMD% --database.maximal-journal-size 1048576 + +echo starting arangod.exe in server mode +echo with %CMD% + +arangod.exe %CMD% +goto END + + + + +:END + diff --git a/VS2012/Installer/shellExample.bat b/VS2012/Installer/shellExample.bat new file mode 100755 index 0000000000..458ba8b5d0 --- /dev/null +++ b/VS2012/Installer/shellExample.bat @@ -0,0 +1,52 @@ +@echo off +:: ################################################################# +:: # script to start the arango server in windows +:: ################################################################# +cls +break=off +setlocal enableextensions + + +SET ACTION_DIR=".\js\actions\demo" +SET ACTION_SYS_DIR=".\js\actions\system" +SET GC=20 +SET STARTUP_MOD=".\js\client\modules;.\js\common\modules;.\js\node" +SET STARTUP_DIR=".\js" +SET PACKAGE_PATH=".\js\npm" + + + +SET HTTP_PORT=tcp://127.0.0.1:8529 +SET LOG_LEVEL=info + + +:START_ARANGO +:: ################################################################## +:: # set the command line parameters +:: # If you wish to start the shell without a connection to an +:: # server, please change the the command +:: # SET CMD=%CMD% --server.endpoint %HTTP_PORT% +:: # to +:: # SET CMD=%CMD% --server.endpoint none +:: ################################################################## + +SET CMD= +SET CMD=%CMD% --server.endpoint %HTTP_PORT% +SET CMD=%CMD% --server.disable-authentication true +SET CMD=%CMD% --log.level %LOG_LEVEL% +SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR% +SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD% +SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH% + + +echo starting arangosh.exe +echo with %CMD% + +arangosh.exe %CMD% +goto END + + + + +:END + diff --git a/VS2012/Installer/upgradeExample.bat b/VS2012/Installer/upgradeExample.bat new file mode 100755 index 0000000000..17b77839bf --- /dev/null +++ b/VS2012/Installer/upgradeExample.bat @@ -0,0 +1,94 @@ +@echo off +:: ################################################################# +:: # script to start the arango server in windows +:: ################################################################# +cls +break=off +setlocal enableextensions + + +SET ACTION_DIR=".\js\actions" +SET GC=20 +SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node" +SET STARTUP_DIR=".\js" +SET APP_PATH=".\js\apps" +SET PACKAGE_PATH=".\js\npm" + + + + +SET DATABASE_DIR=".\data" +SET HTTP_PORT=tcp://127.0.0.1:8529 +SET LOG_LEVEL=info + + +:: ################################################################## +:: # Since we have set the database dir to be .\data, check that it +:: # really exists, if not create it - otherwise arangodb will exit! +:: ################################################################## +if EXIST ".\data" goto CHECK_LOCK +mkdir data +if NOT EXIST ".\data" ( + echo Error when attempting to create data directory ... exiting + goto END +) + +:CHECK_LOCK +:: ################################################################## +:: # Check for the pid lock file and delete it. +:: # This indicates abnormal termination. +:: ################################################################## + +if EXIST ".\data\lock" goto DEL_LOCK + +:DEL_LOCK +echo removing lock file +del /F .\data\lock > NUL +if EXIST ".\data\lock" ( + echo ======================================================================================= + echo ERROR: There appears to be a lock file which is in use. This is generally caused + echo by starting a second server instance before the first instance has terminated. + echo If you are certain that no other arango database server instances are active, + echo you may attempt to manually remove the lock .\data\lock. + echo ACTION: Session ends. + echo ======================================================================================= + goto END +) +goto START_ARANGO + + + +:START_ARANGO +:: ################################################################## +:: # set the command line parameters +:: ################################################################## + +SET CMD= +SET CMD=%CMD% --server.endpoint %HTTP_PORT% +SET CMD=%CMD% --database.directory %DATABASE_DIR% +SET CMD=%CMD% --server.disable-authentication true +SET CMD=%CMD% --log.level %LOG_LEVEL% +SET CMD=%CMD% --log.severity human +SET CMD=%CMD% --javascript.action-directory %ACTION_DIR% +SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD% +SET CMD=%CMD% --javascript.app-path %APP_PATH% +SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH% +SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR% +SET CMD=%CMD% --server.threads 4 +SET CMD=%CMD% --scheduler.threads 4 +:: the default size is 32M change this if required - especially in the 32 bit version +:: SET CMD=%CMD% --database.maximal-journal-size 1048576 +SET CMD=%CMD% --console +SET CMD=%CMD% --upgrade + +echo starting arangod.exe in server mode +echo with %CMD% + +arangod.exe %CMD% +goto END + + + + +:END +