百度云网盘搜索引擎是一个以PHP+MySQL进行开发的网盘搜索引擎源码。
百度云网盘搜索引擎运行
运行环境 开始之前你需要安装
* PHP 5.3.7 +
* MySQL
* Python 2.7 ~
* [xunsearch](//xunsearch.com/) 搜索引擎
项目的目录结构___大致是这样的
--- indexer/ #索引
--- spider/ #爬虫
--- sql/
--- web/ #网站
--- application/
--- config/ # 配置相关
--- config.php
--- database.php # 数据库配置
...
...
--- static/ # 存放静态资源,css|js|font
--- system/
--- index.php
开始部署
创建数据库
创建名为`pan`的数据库,编码设为`utf-8`。然后导入`sql`,完成表的创建。
网站部署
支持`nginx`,`apache` 服务器。
__apache__ 需要开启 *mod_rewrite* 。
__nginx__ 配置如下
location /
{
index index.php;
try_files $uri $uri/ /index.php/$uri;
}
location ~ [^/].php(/|$)