---
title: "无挂断程序操作"
author: "amspring"
date: "2014-06-06T17:03:21Z"
tags: ["Rails"]
categories: ["操作系统"]
slug: "untitled"
draft: false
lastmod: "2014-06-06T17:03:21Z"
id: 2076831
url: "https://amspring.iteye.com/blog/2076831"
---

启动  
$ rails s

这个界面一直占用,关掉会退出服务,虽然可以crrl+z,bg 来运行,但有时退出项目跑不起来

解决:
nohup 命令

$ nohup rails s &       //后台运行,退出终端不影响

查看服务:
$ jobs

关掉
$ fg %n

ctrl+c 


