Giter VIP home page Giter VIP logo

cz's Introduction

ssbc

手撕包菜网站

安装说明

使用CentOS7操作系统。

数据库

  1. 按照MongoDB
yum install mongodb mongodb-server
  1. 运行MongoDB
service mongod start

NodeJS

  1. 按照nodejs10
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum install nodejs
  1. 安装pm2
npm install -g pm2
  1. 运行环境
cd spider && npm install && cd ..
cd web && npm install && npm run build && cd ..

爬虫网站

  1. 启动爬虫
cd spider/ && pm2 start ecosystem.config.js && cd ..
  1. 启动web
cd web && pm2 start ecosystem.config.js && cd ..
  1. 配置web 配置nginx访问web页面。
yum install nginx
service nginx start
vim /etc/nginx/conf.d/ssbc.conf

加入以下配置。

server {
    listen 80;
    server_name www.xxx.com;
    location / {
        proxy_pass http://localhost:3001;
    }
}

搜索引擎

  1. 安装SphinxSearch
yum install http://sphinxsearch.com/files/sphinx-2.3.2-1.rhel7.x86_64.rpm
  1. 创建目录
mkdir -p /data/bt/index/db /data/bt/index/binlog
  1. 初始化索引

cd spider indexer -c sphinx.conf hash searchd -c sphinx.conf

网站说明

这是 www.shousibaocai.org 的网站源代码。 开源的目的是为了促进技术交流和相互学习,把DHT与搜索引擎技术应用到更广泛的领域去。

本站于2015年5月使用django改写。 本站于2019年使用nodejs改写。 与爬虫相关的代码都在目录spider目录下。

相关文章请查看作者博客: http://xiaoxia.org/2015/05/15/shousibaocai-opensource/

cz's People

Contributors

78 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.