简体   繁体   English

虚拟主机不支持cron作业。 如何远程运行抓取脚本以挖掘数据,然后将其发送到托管的mysql数据库?

[英]Web hosting does not support cron jobs. How can I run my scraping script remotely to mine data and then send it to my hosting's mysql database?

I am currently using Yahoo web hosting. 我目前正在使用Yahoo虚拟主机。 I found out that Yahoo does not support cron jobs. 我发现Yahoo不支持cron作业。 What I want to do is run my script and feed the data it mines into Yahoo's mysql database. 我想做的是运行我的脚本并将其挖掘的数据输入Yahoo的mysql数据库。 The script is written in PHP, takes a couple hours to complete, and I would like it to be running constantly to keep my information updated. 该脚本是用PHP编写的,需要花费几个小时才能完成,我希望它能够不断运行以保持信息更新。 Is it possible to run the script in my local environment and somehow send that information to the Yahoo's mysql server? 是否可以在我的本地环境中运行该脚本,并以某种方式将该信息发送到Yahoo的mysql服务器? Is there a free online service which would run my script for me and send the data? 是否有免费的在线服务可以为我运行脚本并发送数据?

You can use Jenkins for this. 您可以为此使用詹金斯。 A cron job configuration could be done in the way it is specified here . 可以按照此处指定的方式完成cron作业配置。 Complete step by step guide could be also find here . 完整的分步指南也可以在这里找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法连接到我的托管服务的MySql数据库。 NB - Cannot connect to my hosting service's MySql database. NB 代码以连接到yahoo虚拟主机中的数据库 - code to connect to my database in yahoo web hosting 如何访问Web托管站点的MySql数据库 - how to access MySql database of web hosting site 使用 GCS 配置我的主机,以便我的 HTML 网站可以使用 PHP 脚本发送电子邮件 - Configuring my hosting with GCS so my HTML website can send emails using a PHP script 使用共享托管并且无法访问外部Webroot时,如何保护数据库凭据? - How can I secure my database credentials when using shared hosting and no access to outside the webroot? 如何连接到我的托管服务器中的数据库? - How to connect to database in my hosting server? php-如何使托管站点的编辑器在我的文本区域中看到源代码? - php - How can I make the hosting site's editor see the source code in my text area? 我如何评估我的托管服务提供商声称“针对Magento进行了优化”? - How can I evaluate my hosting provider's claim to be “optimized for Magento”? 如何更改托管服务器的默认发件人地址? - How can I change the default sender address of my hosting server? Web表单将发送到我共享的托管帐户上的STMP电子邮件地址,但不会发送到gmail,yahoo等 - Web form's will send to STMP email address on my shared hosting account, but not to gmail, yahoo, ect
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM