Download
Download the Zip-file for your operating system. The Enterprise Edition can be downloaded directly from the shop or the support area.
LINK TO SHOP
Following dependencies have to be installed first:
- Node.js (0.10.x)
- MongoDB (2.4.x)
- RedisIO (2.4.x) (optional)
Alternativly use Baboonstack. It is solving all dependencies in a simple one-click solution for different operating systems. It also offers an easy way to register a Node.js application as a service in Windows operation systems.
...
Codeblock | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
#!/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
...
Update
- Stop the service or the Node.js application (Mac)
...