Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

人比较笨,有增删改查的示例么? #1

Open
hulang opened this issue May 25, 2019 · 3 comments
Open

人比较笨,有增删改查的示例么? #1

hulang opened this issue May 25, 2019 · 3 comments

Comments

@hulang
Copy link

hulang commented May 25, 2019

有开源项目中使用到这个么?我去看看用法。

@hulang
Copy link
Author

hulang commented May 25, 2019

以前一直是控制台输入命令:crontab -e进行编辑
现在没有权限碰服务器了,只能让管理服务器的来弄。
我想如果直接在我写的PHP后台弄,至于监听命令,让服务器那边挂起。。。

@hulang
Copy link
Author

hulang commented May 25, 2019

有交流群也可以啊!!!
think_cron表,能整几个demo的么?比如:
https://gitee.com/F4NNIU/FastAdmin-FreeAddons/tree/crontab/master/
install.sql文件中的:
BEGIN; INSERT INTO __PREFIX__crontab (id, type, title, content, schedule, sleep, maximums, executes, createtime, updatetime, begintime, endtime, executetime, weigh, status) VALUES (1, 'url', '请求FastAdmin', 'http://www.fastadmin.net', '* * * * *', 0, 0, 13548, 1497070825, 1501253101, 1483200000, 1546272000, 1501253101, 1, 'normal'), (2, 'sql', '查询一条SQL', 'SELECT 1;', '* * * * *', 0, 0, 13548, 1497071095, 1501253101, 1483200000, 1546272000, 1501253101, 2, 'normal'); COMMIT;

@hulang
Copy link
Author

hulang commented May 26, 2019

php think xcron:schedule start --daemon
报错了。。你确定测试过?
php think xcron:schedule start
通过!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant