CentOS 安装Derby
CentOS 安装Derby
Starryard 发表于6个月前
CentOS 安装Derby
  • 发表于 6个月前
  • 阅读 14
  • 收藏 0
  • 点赞 0
  • 评论 0

腾讯云 技术升级10大核心产品年终让利>>>   

tar -zxvf db-derby-10.13.1.1-bin.tar.gz
mv db-derby-10.13.1.1-bin /opt/derby
cd /opt/derby
mkdir daemon
cd daemon
vi derby

 

#!/bin/sh

#
# derby - this script starts and stops the derby daemon
#
# chkconfig:   - 85 15
# description:  derby is a java Database
# processname: derby
# pidfile:     /var/run/derby.pid

DERBY_HOME=/opt/derby
DERBY_HOST=0.0.0.0
DERBY_PORT=1527

case "$1" in
start)
 $DERBY_HOME/bin/startNetworkServer -h $DERBY_HOST -p $DERBY_PORT &
 break
;;
stop)
 $DERBY_HOME/bin/stopNetworkServer -p $DERBY_PORT
 break
;;
status)
 $DERBY_HOME/bin/NetworkServerControl ping -p $DERBY_PORT >/dev/null 2>&1
 if [ "$?" = "0" ]; then
 echo "The derby service is running."
 else
 echo "Cannot find derby service."
 fi
 break
;;
*)
 echo "Usage: /etc/init.d/derby {start|stop|status}"
;;
esac
cp derby /etc/init.d/
service derby start

 

共有 人打赏支持
粉丝 0
博文 32
码字总数 2222
×
Starryard
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: