forked from ravendb/ravendb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.linux.txt
51 lines (38 loc) · 1.41 KB
/
readme.linux.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Startup instructions for RavenDB on Linux
=========================================
* RavenDB as a Console Application
Open bash terminal
Type:
chmod +x run.sh
./run.sh
* RavenDB as Daemon (systemd - applies to Ubuntu 16.04)
Open bash terminal, and create file /etc/systemd/system/ravendb.service, using super user permissions, containing:
[Unit]
Description=RavenDB v4.2
After=network.target
[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=<desired user>
Restart=on-failure
Type=simple
ExecStart=/path/to/RavenDB/run.sh
[Install]
WantedBy=multi-user.target
Note: Replace in the above text the username "User=<desired user>" and set path in "ExecStart"
Then register the service and enable it on startup by typing:
systemctl daemon-reload
systemctl enable ravendb.service
Start the service:
systemctl start ravendb.service
View its status using:
systemctl status ravendb.service
or
journalctl -f -u ravendb.service
* Setup
Open browser, if not opened automatically, at url printed in "Server available on: <url>"
Follow the web setup instructions at: https://ravendb.net/docs/article-page/4.2/csharp/start/installation/setup-wizard
* Upgrading to a New Version
Follow the upgrade instructions available at: https://ravendb.net/docs/article-page/4.2/csharp/start/installation/upgrading-to-new-version