简体   繁体   中英

PHP background process

I've wrote a php irc bot, but i need it to work in the background. With this there'd be no quits or so. What is the best way to do this?

Thanks and Regards.

Take a look at the following website. There is a pretty descend explanation on how to write PHP daemons.

http://kevin.vanzonneveld.net/techblog/article/create_daemons_in_php/

Run it in screen , then detach. You can then quit the terminal and re-attach to the screen session later.

我使用类似的东西:

nohup php /path/to/script.php > /dev/null 2> /dev/null&

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM