建立的计划任务存在那里呢

我想问题下,计划任务所建立的任务,是存在那里的呢!

我也感兴趣,所以调查了下。起初以为和 BT 面板一样,是系统 Cron,但是看了下不是,然后搜索了 1Panel 的代码,发现是用了一个 Go cron 库自己实现的,任务保存在数据库中:

root@ubuntu:/opt/1panel# sqlite3 /opt/1panel/db/1Panel.db 'select id,name from cronjobs'
1|test
3|test_container_again
2|test_run_in_container

1Panel 是通过 Golang 的定时任务库来实现的,不是通过服务器 crontab。