mkdir tor
cd tor
wget https://dist.torproject.org/tor-0.4.7.13.tar.gz
tar -zxvf tor-0.4.7.13.tar.gz
cd tor-0.4.7.13
sudo apt update
sudo apt upgrade
sudo apt-get install make
sudo apt-get install build-essential
sudo apt-get install libevent-dev -y
sudo apt-get install libssl-dev -y
sudo apt-get install zlib1g-dev -y
./configure
make && make install
``` shell
#运行Tor
screen -R tor
cd src
vim torrc
加一行SocksPort localhost:9052
app/tor -f torrc
出现100%即ok
sudo apt-get install firefox
sudo apt-get install redis
sudo apt-get install tcpdump
pip3 install selenium
pip3 install requests
pip3 install redis
pip3 install BeautifulSoup4
pip3 install psutil
cd traffic
cd torTraffic
chmod 777 geckodriver
redis-cli
config set stop-writes-on-bgsave-error no
quit
redis-cli
flushall
quit