Basic Skill

Get current script path

script=$()

Check for root user

 ] ; then
  echo "current user is not root "
  exit
fi

Read the configured Port

read -p "please set the app port for this instance [$_APP_PORT] " APP_PORT
if ! echo $APP_PORT | egrep -q '^[0-9]+$' ; then
  echo "setted default port: $_APP_PORT"
  APP_PORT=$_APP_PORT
fi
上一篇:hadoop生态圈列式存储系统--kudu介绍及安装配置


下一篇:Tomcat基础教程(四)