[Dev Tip] Change port of installed RavenDB


1. As Service
1.1 Stop service
1.2 Change Raven.Server.exe.config file
e.g.:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<add key="Raven/Port" value="8080"/>
<add key="Raven/DataDir" value="~\Data"/>
<add key="Raven/AnonymousAccess" value="Admin"/>
<add key="Raven/IndexStoragePath" value="~\Data\Indexes"/></appSettings>
<runtime>
<loadFromRemoteSources enabled="true"/>
<gcServer enabled="true"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="Analyzers;Plugins"/>
</assemblyBinding>
</runtime>
</configuration>

1.3 Restart ravendb service

2. As IIS
Change port of its binding, recycle ravendb application

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s