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
[Haima的博客]
http://www.cnblogs.com/haima/
#!/bin/bash
nohup rails s Puma -d >> run_log.log 2>&1 &
#!/bin/bash
ps -ef |grep puma |awk '{print $2}'|xargs kill -9