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:
Installation
Start the respective setup file and follow the installation instructions.
Hinweis |
---|
When installing the application in Linux through a graphical package manager (e.g. Ubuntu Software Center) the unpacking of the deb package could take some time. The package includes many small files. As an alternative you can install the package through the console. Codeblock |
---|
| sudo dpkg --install mms-v0.4.0-linux-amd64.deb |
|
Hinweis |
---|
When installing the application in Mac there could be an error message that the application was not downloaded through the app store or is not from developers identified by Apple. Then please go to security preferences in the system settings. There you can allow the installation of the package or set the "Allow applications downloaded from:" to "Anywhere". Image Removed |
Update
For updates of Mongo Management Studio simply perform an installation. Thus, the existing version is replaced with the new version.
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:
You'll also need BaboonStack. The latest version is available here:
Installation
- Start the installation of BaboonStack and leave all settings unchanged.
- Unzip the zip-file from Mongo Management Studio in the desired folder
- Adjust the settings in the config.js suitable for your environment
- Open the command prompt as administrator
- Run the setup script
Codeblock |
---|
|
node scripts/setup.js |
...
Warnung |
---|
You really should change the password of the sysadmin for security reasons! |
Run the application as a service
Windows
In Windows you can register the application as a service. Then Mongo Management Studio runs even after restart of your system.
Codeblock |
---|
|
// 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
Below are two examples of different init systems under Linux. If necessary, change the settings for your system.
Sample script for Upstart
Codeblock |
---|
|
$ nano /etc/init/mmsd.conf
$ service mmsd start |
Codeblock |
---|
theme | Emacs |
---|
title | /etc/init/mmsd |
---|
firstline | 1 |
---|
linenumbers | true |
---|
collapse | true |
---|
|
#!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 |
---|
|
$ nano /etc/init.d/mmsd
$ chmod +x /etc/init.d/mmsd
$ update-rc.d mmsd defaults
$ ./etc/init.d/mmsd start |
Codeblock |
---|
theme | Emacs |
---|
language | bash |
---|
title | /etc/init.d/mmsd |
---|
firstline | 1 |
---|
linenumbers | true |
---|
collapse | true |
---|
|
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Mongo Management Studio Daemonize
#
. /etc/rc.d/init.d/functions
USER="nodejs"
NODEBIN="/opt/litixsoft/baboonstack/node/0.10.26/bin/node"
NODEAPP="/opt/litixsoft/mongo_management_studio/server.js"
LOGFILE="/var/log/mmsd.log"
LCKFILE="/var/lock/subsys/mmsd"
do_start()
{
if [ ! -f "$LCKFILE" ] ; then
echo -n $"Starting $NODEAPP: "
runuser -l "$USER" -c "$NODEBIN $NODEAPP >> $LOGFILE &" && echo_success || echo_failure
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch $LCKFILE
else
echo "$NODEAPP is locked."
RETVAL=1
fi
}
do_stop()
{
echo -n $"Stopping $NODEAPP: "
pid=`ps -aefw | grep "$NODEBIN $NODEAPP" | grep -v " grep " | awk '{print $2}'`
kill -9 $pid > /dev/null 2>&1 && echo_success || echo_failure
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f $LCKFILE
}
case "$1" in
start)
do_start
;;
stop)
do_stop
;;
restart)
do_stop
do_start
;;
*)
echo "Usage: $0 {start|stop|restart}"
RETVAL=1
esac
exit $RETVAL |
Mac
Mac
Please use tools based on node.js like PM2 or forever.
Update
- Stop the service or the Node.js application (Mac)
Codeblock |
---|
|
// Pseudo Code
bbs service stop [name of service]
// example
// service is mms
bbs service stop mms |
...
Different installation instructions in dependence of the version.
Untergeordnete Seiten (Anzeige untergeordneter Seiten) |
---|