首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Daemon vs过程

Daemon vs过程
EN

Stack Overflow用户
提问于 2018-07-23 08:51:32
回答 1查看 988关注 0票数 3

我对linux非常陌生,所以我不太明白守护进程、前台进程和后台进程之间的区别。

据我所知:

  • Daemon只是一个后台进程,它在后台运行,并将init作为其父进程。
  • 前台进程是一个简单地从控制台调用的进程。

那么,如果我在带有“守护进程关闭”标志的坞容器中运行nginx,这意味着nginx将是在容器的控制台中运行的前台进程?

EN

回答 1

Stack Overflow用户

发布于 2018-07-23 08:58:10

究竟是什么问题呢?

代码语言:javascript
复制
- `To start a container in detached mode, you use -d=true or just -d option.`
- `In foreground mode (the default when -d is not specified), docker run can start the process in the container and attach the console to the process’s standard input, output, and standard error.`

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51474890

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档