sudo gedit /usr/share/applications/zbus_new.desktop
然后输入以下内容并保存退出:
[Desktop Entry]
Type=Application
Name=zbus_new
Exec=/home/zilaike/software/zbus/Java/zbus-dist/bin/zbus_new.sh
#Icon=
==============================其他无关内容=======================================
关于zbus.sh的相关修改:
sudo gedit ~/software/zbus/Java/zbus-dist/bin/zbus_new.sh
然后输入以下内容并保存退出:
#/usr/bin
#cat zbus.sh | col -b > zbus2.sh
==> fix win=>lin
if [ -z ${JAVA_HOME} ]; then
JAVA_HOME=/apps/jdk7
fi
ZBUS_HOME=~/software/zbus/Java/zbus-dist/
JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms64m -Xmx1024m -XX:+UseParallelGC"
MAIN_CLASS=org.zbus.mq.server.MqServer
if [ -z "$1" ]
else
MAIN_OPTS="-conf $1"
fi
LIB_OPTS="$ZBUS_HOME/lib/*:$ZBUS_HOME/classes:$ZBUS_HOME/*"
nohup $JAVA_HOME/bin/java $JAVA_OPTS -cp $LIB_OPTS $MAIN_CLASS $MAIN_OPTS > ~/Desktop/nohup.out &