在Linux服务器上运行PHP

How to run PHP file on startup?

PHP File Used Socket. In While(true) {} and set_time_limit (0)

How to run this in startup Linux ( Ubuntu ) in Background ;

Used :

nohup php <file> &

&&

php <file> -q & 

I think you should kept in the root folder of your linux as it would automatically run