Mango 3.0.1 & Debian Error
Hello, i am trying to run mango free 3.0.1 on Debian Jessie
uname -rv 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02)
java -version java version "1.8.0_131" Java(TM) SE Runtime Environment (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
echo $JAVA_HOME /usr/lib/jvm/java-8-oracle
I copied mango files in /opt/mango directory
I have changed permissions to all /bin scripts,
but when I am trying to execute ma.sh script:
sh ma.sh start ma.sh: 25: ma.sh: Syntax error: Bad fd number
mkdir "$MA_HOME"/logs/ >&/dev/null
mkdir "$MA_HOME"/logs/ &>/dev/null
There is something more, but still does not want to work
sh ma.sh start MA_HOME is /opt/mango ma.sh: 30: ma.sh: source: not found /opt/mango/bin/ma-start.sh: line 99: -server: command not found ma-start: MA started with Process ID: 2178 ma-start: no restart flag found, not restarting MA ma-start: MA done
Ah, that explains why the first error occurred, I overlooked you were using sh. In bash the &> and >& are equivalent in that place I pointed out. The hashbang is /bin/bash, is there a reason you're using sh?
I must apologize to you. Of course Mango is now working fine. I am beginner in unix system, so I'm making so basic mistakes. Thank You for your help.
No worries, it's what we're here for! Please feel free to post any and all questions you have (well, it can be good to try to answer them for yourself first, of course)!