全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 26713|回复: 10
打印 上一主题 下一主题

求个SSBC的安装教程

[复制链接]
跳转到指定楼层
1#
发表于 2017-3-2 15:15:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
100金钱
本帖最后由 gaoji.me 于 2017-3-2 15:57 编辑

http://www.91ai.net/thread-299017-1-1.html
http://www.91ai.net/thread-284436-1-1.html
这两个教程无法用啊~~=》


手动安装:到
[root@sds ssbc-master]# indexer -c sphinx.conf --all
-bash: indexer: command not found


这里过不去了~~

最佳答案

查看完整内容

用一键包吧!
2#
发表于 2017-3-2 15:15:59 | 只看该作者
用一键包吧!
  1. #!/bin/bash
  2. #我本戏子 2016.8
  3. #changelog:
  4. #1.1添加开机自启动功能
  5. #1.2修改pip获取方式
  6. #1.3考虑到精简版系统的情况,自动安装wget与net-tools
  7. python -V         
  8. systemctl stop firewalld.service  
  9. systemctl disable firewalld.service   
  10. systemctl stop iptables.service  
  11. systemctl disable iptables.service  
  12. yum -y install wget
  13. #如果使用linode主机,请取消下面4行的注释
  14. #wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyuncs.com/repo/Centos-7.repo
  15. #wget -qO /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
  16. #yum clean metadata
  17. #yum makecache
  18. cd ~
  19. wget https://github.com/78/ssbc/archive/master.zip
  20. yum -y install unzip
  21. unzip master.zip
  22. #解压后 源码在/root/ssbc-master目录
  23. yum -y install gcc
  24. yum -y install gcc-c++
  25. yum -y install python-devel
  26. yum -y install mariadb
  27. yum -y install mariadb-devel
  28. yum -y install mariadb-server
  29. cd ssbc-master
  30. yum -y install epel-release
  31. yum -y install  python-pip
  32. pip install -r requirements.txt
  33. pip install  pygeoip
  34. systemctl start  mariadb.service
  35. mysql -uroot  -e"create database ssbc default character set utf8;"  
  36. sed -i '/!includedir/a\wait_timeout=2880000\ninteractive_timeout = 2880000\nmax_allowed_packet = 512M' /etc/my.cnf
  37. mkdir  -p  /data/bt/index/db /data/bt/index/binlog  /tem/downloads
  38. chmod  755 -R /data
  39. chmod  755 -R /tem
  40. yum -y install unixODBC unixODBC-devel postgresql-libs
  41. wget http://sphinxsearch.com/files/sphinx-2.2.9-1.rhel7.x86_64.rpm
  42. rpm -ivh sphinx-2.2.9-1.rhel7.x86_64.rpm
  43. systemctl restart mariadb.service  
  44. systemctl enable mariadb.service
  45. searchd --config ./sphinx.conf
  46. python manage.py makemigrations
  47. python manage.py migrate
  48. indexer -c sphinx.conf --all
  49. ps aux|grep searchd|awk '{print $2}'|xargs kill -9
  50. searchd --config ./sphinx.conf
  51. #启动网站并在后台运行
  52. nohup python manage.py runserver 0.0.0.0:80 >/dev/zero 2>&1&   
  53. yum -y install net-tools
  54. myip=`/sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"`
  55. while true; do
  56.     read -p "确定浏览器能访问网站  http://$myip  吗?[y/n]" yn
  57.     case $yn in
  58.         [Yy]* ) cd workers; break;;
  59.         [Nn]* ) exit;;
  60.         * ) echo "请输入yes 或 no";;
  61.     esac
  62. done
  63. #运行爬虫并在后台运行
  64. nohup python simdht_worker.py >/dev/zero 2>&1&
  65. #定时索引并在后台运行
  66. nohup python index_worker.py >/dev/zero 2>&1&  
  67. cd ..
  68. python manage.py createsuperuser
  69. #开机自启动
  70. chmod +x /etc/rc.d/rc.local
  71. echo "systemctl start  mariadb.service " >> /etc/rc.d/rc.local
  72. echo "cd /root/ssbc-master " >> /etc/rc.d/rc.local
  73. echo "indexer -c sphinx.conf --all " >> /etc/rc.d/rc.local
  74. echo "searchd --config ./sphinx.conf " >> /etc/rc.d/rc.local
  75. echo "nohup python manage.py runserver 0.0.0.0:80 >/dev/zero 2>&1& " >> /etc/rc.d/rc.local
  76. echo "cd workers " >> /etc/rc.d/rc.local
  77. echo "nohup python simdht_worker.py >/dev/zero 2>&1& " >> /etc/rc.d/rc.local
  78. echo "nohup python index_worker.py >/dev/zero 2>&1& " >> /etc/rc.d/rc.local
复制代码
3#
发表于 2017-3-2 15:24:11 | 只看该作者
要不我卖个站给你  一天3000左右ip
手撕包菜的
4#
 楼主| 发表于 2017-3-2 15:24:52 | 只看该作者
fw2you 发表于 2017-3-2 15:24
要不我卖个站给你  一天3000左右ip
手撕包菜的

没钱啊。。 ks 留着也是闲着
5#
 楼主| 发表于 2017-3-2 15:31:40 | 只看该作者

我试试~
6#
发表于 2017-3-2 15:54:02 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
7#
 楼主| 发表于 2017-3-2 15:56:25 | 只看该作者

好用!!!!
8#
发表于 2017-3-3 09:03:09 | 只看该作者

大佬这是一键包,还是一步一步执行命令?
9#
发表于 2017-3-3 09:23:09 | 只看该作者
爬来的全是英日韩俄的,没有中文的。
而且大部分是大人资源……哎
10#
发表于 2017-3-3 15:08:23 | 只看该作者
左手写爱 发表于 2017-3-3 09:03
大佬这是一键包,还是一步一步执行命令?

一键包,存为sh  执行
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-9 19:29 , Processed in 0.064459 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表