linux下torのインストール
4760 ワード
第一歩:Torをダウンロードしてインストール公式サイトで最新バージョンのTorをダウンロードして、私がダウンロードしたのはtor-0.25.0.19-alphaです.tar.gzは、システム互換性を考慮して、RPM以外のパッケージをダウンロードしました. tar zxvf tor-0.2.0.19-alpha.tar.gz cd tor-0.2.0.19-alpha ./configure make
make install
うまくいけばインストールは成功したはずですが、configureでエラーメッセージに遭遇して中断しました:checking whether we need extra options to link libevent...configure:error:Found linkable libevent in(system)、but it does not seem to run,even with-R.Maybe specify another using–with-libevent-dir}
まずlibeventをインストールしなければなりません.
次の
./configure–with-libevent-dir=/usr/local/libヒントchecking for openssl directory...configure: WARNING: Could not find a linkable openssl. If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dir configure: WARNING: On most Redhat-based systems, you can get openssl by installing the openssl"RPM package configure: WARNING: You will probably need to install openssl-devel too. configure: error: Missing libraries; unable to proceed.
Opensslのインストール
make install
うまくいけばインストールは成功したはずですが、configureでエラーメッセージに遭遇して中断しました:checking whether we need extra options to link libevent...configure:error:Found linkable libevent in(system)、but it does not seem to run,even with-R.Maybe specify another using–with-libevent-dir}
まずlibeventをインストールしなければなりません.
次の
./configure–with-libevent-dir=/usr/local/libヒントchecking for openssl directory...configure: WARNING: Could not find a linkable openssl. If you have it installed somewhere unusual, you can specify an explicit path using --with-openssl-dir configure: WARNING: On most Redhat-based systems, you can get openssl by installing the openssl"RPM package configure: WARNING: You will probably need to install openssl-devel too. configure: error: Missing libraries; unable to proceed.
Opensslのインストール
./config --prefix=/usr/local/openssl
make
zlib
./configure
make
make install
: Tor , /usr/local/etc/tor/ , torrc.sample 。 cp torrc.sample torrc mkdir /var/log/tor touch /var/log/tor/notices.log touch /var/log/tor/debug.log mkdir /var/run/tor touch /var/run/tor/tor.pid mkdir /var/lib/tor torrc : SocksPort 9050 SocksListenAddress 127.0.0.1 Log notice file /var/log/tor/notices.log Log debug file /var/log/tor/debug.log # debug.log , , 。 DataDirectory /var/lib/tor # tor key 。 Nickname yourname # , , 。 ContactInfo # email , Tor 。 ORPort 9001 , , , 。 : Tor , /usr/local/bin/tor -f /usr/local/etc/tor/torrc & , , 。 , contrib. vi torctl , : # the path to your binary, including options if necessary TORBIN=“/usr/local/bin/$EXEC” # the path to the configuration file TORCONF=“/usr/local/etc/tor/torrc” # the path to your PID file PIDFILE=“/var/run/tor/tor.pid” # The path to the log file LOGFILE=“/var/log/tor/tor.log” # The path to the datadirectory TORDATA=“/var/lib/tor” Tor , root, , : TORUSER=root TORGROUP=root copy : cp torctl /usr/local/bin/ tor.sh torctl : TORCTL=/usr/local/bin/torctl TORUSER=root export TORUSER TORGROUP=root export TORGROUP tor.sh : cp tor.sh /etc/rc.d/init.d/ #tor.sh Usage: /etc/rc.d/init.d/tor.sh (start|stop|restart|reload|status) , tor , : Feb 23 23:29:36.464 [notice] Tor 0.2.0.19-alpha (r13450) opening log file. Feb 23 23:29:36.466 [warn] You are running Tor as root. You don‘t need to, and you probably shouldn’t. Feb 23 23:29:37.054 [notice] Your Tor server‘s identity key fingerprint is ……………… Feb 23 23:29:40.083 [notice] We now have enough directory information to build circuits. Feb 23 23:29:41.946 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor. Feb 23 23:29:46.656 [notice] Tor has successfully opened a circuit. Looks like client functionality is working. Feb 23 23:30:43.600 [notice] Self-testing indicates your DirPort is reachable from the outside. Excellent. Feb 23 23:31:49.993 [notice] Performing bandwidth self-test…done. : 1) /var/lib/tor/keys key, Tor , , key 。 2) Tor , http://moria.seul.org:9032/tor/status/authority , IP 。 3) Windows Tor Tor , windows , Linux Tor 。 4)Tor 9001 ORPort 443, , 443 Tor , , , , , 。 Tor , Tor , , Tor , , Tor , Tor