Think before you speak, read before you think.

daemon

by

in

daemon(发音为DEE-muhn),是一段连续运行的程序,用于处理计算机系统希望接收到的阶段性的服务需求的。Daemon程序段将请求提交给其他合适的程序(或者进程)。网络上每个页面的服务器都有一个HTTPD或者是超文本传输协议daemon,持续地等待从网络客户端及其用户发送来的请求。
Daemon程序,又称为守护进程,通常在系统后台长时间运行,由于没有控制终端而无法与前台交互。Daemon程序一般作为系统服务使用.
据韦伯斯特词典记载,在神话里面,daemon是“一种从事服务的力量或者精灵”。
很可能与Daemon相混淆的还有一个demon,这个demon的含义相似,但是不同。 New Hacker的字典中说,daemon是在操作系统下直接自动运行的一段程序,而demon则是较大的应用程序中的一部分。
在Unix等很多系统中,一般以d为结尾的程序就是一个daemon程序,它们是在后台运行的进程。
Daemon(英语单词)
/ˈdiːmən; `dimən/ n
1 (esp in Greek mythology) supernatural being that is half god, half man (尤指希腊神话中的)半人半神的精灵.
2 spirit that inspires sb to action or creativity 守护神.

linux下直接运行daemon

daemon –respawn –attempts=3 –delay=10 –limit=5 –name=project-sync.sh –chdir=/data/www-data –pidfiles=/data/www-data –errlog=/data0/log-data/script.err.log –output=/data0/log-data/script.out.log — php /data/www-data/script.php


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *