RavenDB version 2.5. Other versions:

Running as a service

RavenDB supports running as a system service, creating its own HTTP server and processing all requests internally.

Installing the RavenDB service

  1. Extract the zip with the build files
  2. Go to the Server directory
  3. Execute the following command on the command line: Raven.Server.exe /install
    Note: Raven may ask you for administrator privileges while installing the service.

RavenDB is now installed and running as a service.

Uninstalling the RavenDB service

  1. Go to the Server directory
  2. Execute the following command on the command line: Raven.Server.exe /uninstall

The server storage and indexes will not be deleted when the server is uninstalled.

Server Configuration

Many configuration options are available for tuning RavenDB and fitting it to your needs. See the Configuration options page for complete info.

Comments add new comment

The comments section is for user feedback or community content. If you seek assistance or have any questions, please post them at our support forums.

Arun
REPLY Posted by Arun on

I tried running #2261 as windows service on a Windows 8 machine (running virtualized on Parallels on OS X) Through the admin portal I'm unable to create a new database. I get this message - If you should have access to this operation contact your admin and check the Raven/AnonymousAccess or the Windows Authentication settings in RavenDB

I tried setting AnonymousAccess to All, but the windows security pop up shows up 3 times and then Unauthorized error message is shown.

Any idea?

Ayende Rahien
REPLY Posted by Ayende Rahien on

You can set AnonymousAccess to Admin, which will work. But basically, for those ops you need to be an administrator, and you need to login as an administrator.

Rusty
REPLY Posted by Rusty on

Windows 8 Pro.

I downloaded latest stable and unzipped in my C:\RavenDB-Build-2261

Launched command prompt in admin mode.

Issued following C:\RavenDB-Build-2261\Server>Raven.Server --install

The service won't start I see following error in EventViewer

RavenDB service failed to start because of an error System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object defaultValue, Boolean doNotExpand, Boolean checkSecurity) at Microsoft.Win32.RegistryKey.GetValue(String name) at System.Diagnostics.PerformanceMonitor.GetData(String item) at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item) at System.Diagnostics.PerformanceCounterLib.getCategoryTable() at System.Diagnostics.PerformanceCounterLib.CategoryExists(String machine, String category) at System.Diagnostics.PerformanceCounterCategory.Exists(String categoryName, String machineName) at Raven.Database.Indexing.WorkContext.IsValidCategory(String categoryName, Dictionary`2 instances) in c:\Builds\RavenDB-Stable\Raven.Database\Indexing\WorkContext.cs:line 341 at Raven.Database.Indexing.WorkContext.SetupPerformanceCounter(String name) in c:\Builds\RavenDB-Stable\Raven.Database\Indexing\WorkContext.cs:line 316 at Raven.Database.Indexing.WorkContext.Init(String name) in c:\Builds\RavenDB-Stable\Raven.Database\Indexing\WorkContext.cs:line 365 at Raven.Database.DocumentDatabase..ctor(InMemoryRavenConfiguration configuration) in c:\Builds\RavenDB-Stable\Raven.Database\DocumentDatabase.cs:line 231 at Raven.Server.RavenDbServer..ctor(RavenConfiguration settings) in c:\Builds\RavenDB-Stable\Raven.Server\RavenDbServer.cs:line 30 at Raven.Server.RavenService.<OnStart>b_0() in c:\Builds\RavenDB-Stable\Raven.Server\RavenService.cs:line 37

Ayende Rahien
REPLY Posted by Ayende Rahien on

This is NOT the place for support questions. Please ask in the mailing list.

Johannes Gustafsson
REPLY Posted by Johannes Gustafsson on

Information about setting the service name and other command line parameters would be nice.

Lcng
REPLY Posted by Lcng on

Great thing.

SUBMIT COMMENT