- 方法一:先通过
ctrl-z把程序放到后台,再通过bg %<jobid>提交命令到后台,最后使用disown -h %<jobid>。现在就可以退出终端,程序依然还在运行。 - 方法二:使用screen和retty
$ screen -S my_process
$ retty $(pgrep my_process)
/redraw
Categories
Tag cloud
kernel
cache
dapper
bussines
windows
web
mssql
cakephp
debian
SSH
gentoo
WordPress
javascript
ruby
Security
centos
PHP
sql
google
squid
thinkpad
wireless
monitor
perl
svn
MySQL
design
emacs
vim
Music
system
Personal
python
apache
twisted
news
oracle
ubuntu
Linux
dreamhost
blog
GFW
slackware
music
ubuntulinux
0 Responses to “在Linux中把前台程序放到后台运行”