A project requires a php file to process data once every minute, and the LNMP can't be used to directly access the database through 127.0.0.1. I have never touched Cron before. I have found several solutions. the simulated client sends a request to the domain path every minute. If you do not use the framework to implement your own projects, you need to have a php file process data once every minute, and you cannot directly access the php file through 127.0.0.1 using LNMP.
I have never touched the Cron online search before. now I plan to find several solutions.
The simulated client sends a request to the domain/path every minute.
You do not use the framework to read, parse, and encapsulate data into the database.
Do you have any good solutions? The framework uses CI
Reply content:
A project requires a php file to process data once every minute, and the LNMP cannot be accessed directly through 127.0.0.1.
I have never touched the Cron online search before. now I plan to find several solutions.
The simulated client sends a request to the domain/path every minute.
You do not use the framework to read, parse, and encapsulate data into the database.
Do you have any good solutions? The framework uses CI
Linuxcrontab
Ah
# Php file calling method */10 *****/usr/local/webserver/php/bin/php/www/project/test.com/price.php?#shwriting method #/10 ***** sh/www/project/ test.com/price.sh # laravel framework ***/usr/local/php/bin/php/home/project/service.com/artisan schedule: run ## ThinkPHP framework writing method */1 *****/usr/local/webserver/php/bin/php/www/home/project/dc/cli. php CancelOrder/cancel