> ## Content Index
> Fetch the complete content index at: https://blog.k3s.9zf.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# 终于实现了akcms3.3的自动采集(ssh)
- URL: https://blog.k3s.9zf.net/-e7-bb-88-e4-ba-8e-e5-ae-9e-e7-8e-b0-e4-ba-86akcms3-3-e7-9a-84-e8-87-aa-e5-8a-a8-e9-87-87-e9-9b-86ssh/
- Published: 2010-10-30T06:36:54.000Z
- Updated: 2010-10-30T06:36:54.000Z
- Author: liu
- Tags: Linux, web服务器, #wordpress, #Import 2026-10-29 06:11

因为akcms自带shell下的采集,所以只要能让主机定时执行脚本就可以.

> https://akcms.googlecode.com/svn/branches/3.3

1.下载tools文件夹放在目录里  
2.在ssh里输入

> crontab -e

,编辑cron  
3.添加如下内容,括号里的解释请去掉

> \# dingshi (名称)  
> MAILTO=”qxwo@xx.com” (执行结果发送到邮箱)  
> 0,15,30,45 \* \* \* \* /dh/cgi-system/php5.cgi /home/qxwo/xiacai.com.cn/houtai/tools/spider.php 2

(前面数字为时间参数,可自行搜索修改,后面为路径,此规则适用于dreamhost的虚拟主机,后面的数字2为采集id)

还有种方法是利用dreamhost的定时执行脚本功能,比较简单,只不过一天只执行一次(没测试)  
脚本内容

> #!/bin/bash  
> cd /home/qxwo/xiacai.com.cn/houtai/tools/  
> php spider.php 2