{"id":13758128,"url":"https://github.com/78/ssbc","last_synced_at":"2025-04-08T00:38:26.977Z","repository":{"id":31730208,"uuid":"35296157","full_name":"78/ssbc","owner":"78","description":"手撕包菜网站","archived":false,"fork":false,"pushed_at":"2022-02-20T20:33:44.000Z","size":1229,"stargazers_count":1475,"open_issues_count":9,"forks_count":792,"subscribers_count":77,"default_branch":"master","last_synced_at":"2025-03-31T23:35:53.815Z","etag":null,"topics":["dht","dhtspider","magnet","nodejs","torrent"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-08T18:50:29.000Z","updated_at":"2025-03-15T17:19:59.000Z","dependencies_parsed_at":"2022-08-08T19:15:16.384Z","dependency_job_id":null,"html_url":"https://github.com/78/ssbc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/78%2Fssbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/78%2Fssbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/78%2Fssbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/78%2Fssbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/78","download_url":"https://codeload.github.com/78/ssbc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755560,"owners_count":20990620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dht","dhtspider","magnet","nodejs","torrent"],"created_at":"2024-08-03T12:01:01.716Z","updated_at":"2025-04-08T00:38:26.957Z","avatar_url":"https://github.com/78.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Python"],"sub_categories":[],"readme":"# ssbc\n手撕包菜网站\n\n## 安装说明\n\n使用CentOS7操作系统。\n\n### 数据库 ###\n1. 按照MongoDB\n\n```\nyum install mongodb mongodb-server\n```\n\n2. 运行MongoDB\n\n```\nservice mongod start\n```\n\n### NodeJS ###\n1. 按照nodejs10\n\n```\ncurl -sL https://rpm.nodesource.com/setup_10.x | bash -\nyum install nodejs\n```\n\n2. 安装pm2\n\n```\nnpm install -g pm2\n```\n\n3. 运行环境\n\n```\ncd spider \u0026\u0026 npm install \u0026\u0026 cd ..\ncd web \u0026\u0026 npm install \u0026\u0026 npm run build \u0026\u0026 cd ..\n```\n\n### 爬虫网站 ###\n1. 启动爬虫\n\n```\ncd spider/ \u0026\u0026 pm2 start ecosystem.config.js \u0026\u0026 cd ..\n```\n\n2. 启动web\n\n```\ncd web \u0026\u0026 pm2 start ecosystem.config.js \u0026\u0026 cd ..\n```\n\n3. 配置web\n配置nginx访问web页面。\n\n```\nyum install nginx\nservice nginx start\nvim /etc/nginx/conf.d/ssbc.conf\n```\n\n加入以下配置。\n\n```\nserver {\n    listen 80;\n    server_name www.xxx.com;\n    location / {\n        proxy_pass http://localhost:3001;\n    }\n}\n```\n\n\n### 搜索引擎 ###\n1. 安装SphinxSearch\n\n```\nyum install http://sphinxsearch.com/files/sphinx-2.3.2-1.rhel7.x86_64.rpm\n```\n\n2. 创建目录\n\n```\nmkdir -p /data/bt/index/db /data/bt/index/binlog\n```\n\n3. 初始化索引\n\n``\ncd spider\nindexer -c sphinx.conf hash\nsearchd -c sphinx.conf\n``\n\n\n## 网站说明\n这是 www.shousibaocai.org 的网站源代码。\n开源的目的是为了促进技术交流和相互学习，把DHT与搜索引擎技术应用到更广泛的领域去。\n\n本站于2015年5月使用django改写。\n本站于2019年使用nodejs改写。\n与爬虫相关的代码都在目录spider目录下。\n\n相关文章请查看作者博客：\nhttp://xiaoxia.org/2015/05/15/shousibaocai-opensource/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F78%2Fssbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F78%2Fssbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F78%2Fssbc/lists"}