1、安装环境
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
yum install libffi-devel gcc gcc-c++ -y
2、下载python3.7
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
tar -xvJf Python-3.7.0.tar.xz
3、编译安装
mkdir /usr/local/python3 #创建编译安装目录
cd Python-3.7.0
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
4、安装pip3所需插件pip3 install fake_useragent lxml requests bs4 pandas stem
5、安装tor
yum -y install tor
修改tor配置文件
/etc/tor/torrc
#添加:
ControlPort 9151
SocksPort 9150
#设置启动
systemctl start tor
systemctl enable tor
6、下载待删除域名列表
https://www.namejet.com/download/5-15-2021.txt (时间可手动修改)
namejet.com