服务器网址
198.23.246.166
看网址
cat /var/lib/tor/hidden_service/hostname
看私钥
cat /var/lib/tor/hidden_service/hs_ed25519_secret_key
防火墙
firewall-cmd –query-port=81/tcp
firewall-cmd –reload
firewall-cmd –add-port=81/tcp –permanent
firewall-cmd –remove-port=81/tcp –permanent
改Nginx配置
vi /www/server/nginx/conf/nginx.conf
systemctl restart nginx
改tor配置
vi /etc/tor/torrc
vi /usr/share/tor/defaults-torrc
重启服务
systemctl restart tor
systemctl restart nginx
宝塔Nginx设置目录
/www/server/nginx/conf
查看配置,配置tor服务
systemctl enable tor
vi /usr/lib/systemd/system/tor.service
vi /etc/systemd/system/multi-user.target.wants/tor.service
解决Failed to start Anonymizing overlay network for TCP错误,参考https://forum.manjaro.org/t/tor-failed-to-start-anonymizing-overlay-network-for-tcp/36536/8,通过修改权限解决
chown -R root:root /run/tor
尝试解决Tor.service fails to start问题,参考https://bbs.archlinux.org/viewtopic.php?id=291677。启动检查
Check the configuration file’s validity.
/usr/bin/tor -f /etc/tor/torrc –verify-config
Start the service.(服务器重启时要运行下面的命令,以开启tor)
/usr/bin/tor -f /etc/tor/torrc
查看tor进程
ps aux | grep tor