One-click installation of magnetic search station: installation of SSBC, MariaDB database, and Sphinx search

888u

Last update at :2024-07-10,Edit by888u

It is recommended to use Centos7 as a dedicated server with no traffic limit.

The default port used is;8080, access IP after installation: 8080

1. Install shredded cabbage 1. Uninstall apache

yum -y remove httpd

And install necessary components

yum update -y yum install screen wget unzip gcc gcc-c++ python-devel -y python simdht_worker.py

Turn off the firewall

systemctl stop firewalld.service; systemctl disable firewalld.service

2. Installation

wget https://zhujiwiki.com/wp-content/uploads/2019/05/ssbc.sh shssbc.sh

Select Y for whether you can use the browser to browse the web, and then set your username and password

3. It is recommended to run it manually (or not)

cd workers python simdht_worker.py #Run the crawler and wait for 2 minutes for data to appear before CTRL+C stops. nohup python simdht_worker.py > /dev/zero 2>&1& #Let the crawler run in the background

Continue

python index_worker.py #Input index, wait 10 minutes for data to appear and then CTRL+C to stop nohup python index_worker.py >/dev/zero 2>&1& #Let the index run in the background

2. Domain name reverse generation

Use the Pagoda panel, install Nginx, use your own domain name to reverse IP: 8080, and you can access it with the domain name.

Reference: Install Pagoda Panel 5.9.1 and manually modify it to the professional version

3. Restart regularly to solve the problem of magnetic warehousing

After a while, the magnet cannot be stored in this program. It is recommended to set a scheduled restart.

Download the following file and put it in the /root directory.

https://zhujiwiki.com/wp-content/uploads/2019/05/ssbc-reboot.sh

In the pagoda, planned tasks are recommended to be executed every hour. After the amount of data becomes large, you can set it to restart every day.

sh ssbc-reboot.sh

Four: Related issues

1. If the generation is reversed on another host, the scheduled tasks of the magnetic station are set as follows:

wget https://zhujiwiki.com/wp-content/uploads/2019/05/ssbc-reboot.sh chmod +x ssbc-reboot.sh crontab -e

Restart once an hour:

0 */1 * * * sh /root/ssbc-reboot.sh

2. Search Chinese error report

Modify /usr/lib64/python2.7/site.py vi /usr/lib64/python2.7/site.py Add 2 lines under import sys:

reload(sys) sys.setdefaultencoding('utf8')

3. MySQL error

Add below the last line of /etc/my.cnf

wait_timeout=2880000 interactive_timeout = 2880000 max_allowed_packet = 512M

Reprinted from: https://zhujiwiki.com/2286/

Recommended site search: free website space, Chengdu virtual host, registered domain name, domain name registration number query, registration system, domain name query official website, website registration information, domain name registration center, ip proxy server, domain name registration website

One-click installation of magnetic search station: installation of SSBC, MariaDB database, and Sphinx search

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码