rails角本启动和停止

start.sh

#!/bin/bash
nohup rails s Puma -d >> run_log.log 2>&1 &

stop.sh

#!/bin/bash
ps -ef |grep puma |awk '{print $2}'|xargs kill -9
posted @ 2021-05-29 18:59  HaimaBlog  阅读(64)  评论(0编辑  收藏  举报