gpt4 book ai didi

php - 在Linux服务器上运行PHP

转载 作者:太空宇宙 更新时间:2023-11-04 06:04:20 26 4
gpt4 key购买 nike

如何在启动时运行 PHP 文件?

PHP 文件使用的套接字。在 While(true) {}set_time_limit (0)

如何在启动 Linux (Ubuntu) 中在后台运行它;

使用:

nohup php <file> &

&&

php <file> -q & 

最佳答案

我认为你应该保存在你的linux的根文件夹中,因为它会自动运行

关于php - 在Linux服务器上运行PHP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41319922/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com