This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
安装教程
XcantloadX edited this page Aug 28, 2021
·
2 revisions
- 将项目 Clone 下来,上传到空间上(建议路径
/www/cloudsign/
) - 配置定时运行。若你的空间面板支持 cron jobs,直接设置即可。
若不支持,可以使用 EasyCron(需每月手动激活一次),或者 IFTTT 等网站
- 配置 php 环境
- 将项目 clone 下来,假设 clone 到
~/cloudsign
- 运行
cd ~/cloudsign/
#启动 PHP 内置服务器
php -S 0.0.0.0:8080
#每天早上六点定时访问 http://0.0.0.0:8080/start.php
echo "0 0 6 * * ? * curl http://0.0.0.0:8080/start.php" | crontab
service cron start
或者不搭服务器
#每天早上六点定时运行
echo "0 0 6 * * ? * php ~/cloudsign/start.php" | crontab
service cron start
搭建一个 PHP 服务器,定时访问/start.php
即可
TODO...
conf.php
文件格式如下:
"网站" => array(
),
以贴吧为例,若只有一个账号,这样填写:
"TieBa" => array(
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)
若有多个:
每一行末尾加一个,
(英文逗号),注意最后一行不需要加
"TieBa" => array(
"aaaaaaaaaaaaaaaaaaaaaaaaaa",
"bbbbbbbbbbbbbbbbbbbbbbbbbb",
"cccccccccccccccccccccccccc"
)
访问 https://你的网站/cloudsign/web/
,按照提示修改即可
见 配置说明
如果你搭了服务器,访问localhost/cloudsign/start.php
看看输出有没有问题
如果没有,运行php start.php
运行日志保存在/qiandao.log
中