edit phoenix.sh to set the PHOENIX_HOME
PHOENIX_HOME=/opt/james
and comment out the bit of phoenix.sh
#PRGDIR=`dirname "$THIS_PROG"`
#PHOENIX_HOME=`cd "$PRGDIR/.." ; pwd`
#
#unset THIS_PROG
#
#if [ -r "$PHOENIX_HOME"/bin/setenv.sh ]; then
1. . "$PHOENIX_HOME"/bin/setenv.sh
#fi
在rc.local中加入
export JAVA_HOME=/opt/java
/opt/james/bin/phoenix.sh start