【问题标题】:Run PHP in Linux server在 Linux 服务器上运行 PHP
【发布时间】:2016-12-25 09:14:48
【问题描述】:

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

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

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

使用:

nohup php <file> &

&&

php <file> -q & 

【问题讨论】:

    标签: php linux ubuntu


    【解决方案1】:

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

    【讨论】:

    • 这就是为什么将 index.php 文件放在默认索引文件所在的根文件夹中