alconSeek全文檢索 Api 應(yīng)用框架
爾康搜索(alconSeek)是一個(gè)讓你極其方便地開發(fā)全文檢索 Api 的應(yīng)用骨架。
一. 依賴:
1). LNMP環(huán)境
搭建可參考:https://github.com/farwish/delicateShell/tree/master/lnmp
2). Composer工具
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer
3). Phalcon框架
文檔:https://docs.phalconphp.com/en/latest/reference/install.html
搭建可參考:https://github.com/farwish/delicateShell/blob/master/lnmp/installPhalcon.sh
4). Xunsearch服務(wù)
文檔:http://www.xunsearch.com/doc/php/guide/start.installation
搭建可參考:https://github.com/farwish/delicateShell/blob/master/support/installXunsearch.sh
二. 部署:
sh deploy vi ./app/config/config.ini #數(shù)據(jù)庫配置
三. nginx 配置部分:
server {
listen 80;
server_name alconseek.farwish.com;
root /home/www/alconSeek/public;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
別忘了: /etc/hosts 中加入 127.0.0.1 alconseek.farwish.com
四. 數(shù)據(jù)庫
你可以用phpmyadmin等軟件導(dǎo)入我準(zhǔn)備好的數(shù)據(jù)庫進(jìn)行測(cè)試, 文件是 alconseek.sql。
索引管理界面初始登錄賬號(hào)密碼: admin / admin
五. 訪問
http://www.demo.com/m
http://www.demo.com/s?q=


評(píng)論
圖片
表情
