- 方法一:先通过
ctrl-z把程序放到后台,再通过bg %<jobid>提交命令到后台,最后使用disown -h %<jobid>。现在就可以退出终端,程序依然还在运行。 - 方法二:使用screen和retty
$ screen -S my_process
$ retty $(pgrep my_process)
/redraw
Categories
Tag cloud
dreamhost
Music
plugin
MySQL
slackware
music
ruby
ubuntu
Linux
mssql
windows
system
python
WordPress
gentoo
google
GFW
centos
oracle
news
web
perl
thinkpad
design
monitor
PHP
kernel
twisted
sql
emacs
cakephp
dapper
blog
squid
bussines
apache
cache
Security
Personal
svn
debian
javascript
ubuntulinux
wireless
vim
Archives
Recent Comments
- 重庆美联英语骗子 on 小心重庆美联英语的注册金骗局
- fuck meteni chongqing on 小心重庆美联英语的注册金骗局
- 重庆新东方英语培训 on 小心重庆美联英语的注册金骗局
- 韦博英语 on 小心重庆美联英语的注册金骗局
- 欧文英语重庆最棒 on 小心重庆美联英语的注册金骗局
0 Responses to “在Linux中把前台程序放到后台运行”