Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

Local version

Download

Download the setup file for your operating system. The purchased versions can be downloaded directly from the shop. The free version can be found here:

...

Enterprise Version

Download

Download the Zip-file for your operating system. The purchased versions can be downloaded directly from the shop. The free version can be found here:

...

Codeblock
themeEmacs
languagebash
// Installation as service
// Pseudo Code
bbs service install [Name of the service] [Node version] ["Path to server.js file"]
 
// Example
// Service is named mms
// Use node version 0.10.26
// Zip file was unpacked in the folder c:\mms
bbs service install mms 0.10.26 "c:\mms\server.js"
 
 
// Start the service
// Pseudo Code
bbs service start [Name of the service]
 
// Example
// Service is named mms
bbs service start mms
Linux

Unten finden Sie zwei Beispiele für verschiedene Init Systeme unter Linux. Passen Sie ggf. die Einstellungen für ihr System an.Below are two examples of different init systems under Linux. If necessary, change the settings for your system.

 

Sample script for Upstart 


Codeblock
themeEmacs
languagebash
$ nano /etc/init/mmsd.conf
$ service mmsd start
Codeblock
themeEmacs
title/etc/init/mmsd
firstline1
linenumberstrue
collapsetrue
#!upstart
description "Mongo Management Studio Daemon"
author "Litixsoft 2014"


#start on (local-filesystems and net-device-up IFACE=eth0)
stop on runlevel 0


respawn # restart job if died
respawn limit 5 60 # after 5 trys in 60 seconds abort


script
NODEBIN="/opt/litixsoft/baboonstack/node/0.10.26/bin/node"
APPPATH="/opt/litixsoft/mongo_management_studio/"
NODEAPP="server.js"
LOGFILE="/var/log/mmsd.log"
PIDFILE="/var/run/mmsd.pid"


exec start-stop-daemon --start --make-pidfile --pidfile $PIDFILE --chdir $APPPATH --exec $NODEBIN $NODEAPP

end script

 

Sample script for init.d

 

Codeblock
themeEmacs
languagebash
$ nano /etc/init.d/mmsd
$ chmod +x /etc/init.d/mmsd
$ update-rc.d mmsd defaults
$ ./etc/init.d/mmsd start

...