I added following repos in etc/yum.repos.d/tor.repo:
[Tor]
name=Tor Project Repo
baseurl=http://deb.torproject.org/torproject.org/rpm/el/6/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://deb.torproject.org/torproject.org/rpm/RPM-GPG-KEY-torproject.org.asc
then i downloaded tor by:
[root@dhcppc29 tor]# yum install tor
it downloaded and installed successfully but it is not working and following is the output
Jan 20 18:14:01.219 [notice] Tor v0.2.8.12 running on Linux with Libevent 2.0.21-stable, OpenSSL 1.0.1e-fips and Zlib 1.2.7.
Jan 20 18:14:01.219 [notice] Tor can't help you if you use it wrong! Learn how to be safe at
https://www.torproject.org/download/download#warning
Jan 20 18:14:01.220 [notice] Read configuration file "/etc/tor/torrc".
Jan 20 18:14:01.223 [notice] Opening Socks listener on 127.0.0.1:9050
Jan 20 18:14:01.223 [warn] Could not bind to 127.0.0.1:9050: Address already in use. Is Tor already running?
Jan 20 18:14:01.224 [warn] /run/tor is not owned by this user (root, 0) but by toranon (988). Perhaps you are running Tor as the wrong user?
Jan 20 18:14:01.224 [warn] Before Tor can create a control socket in "/run/tor/control", the directory "/run/tor" needs to exist, and to be accessible only by the user and group account that is running Tor. (On some Unix systems, anybody who can list a socket can connect to it, so Tor is being careful.)
Jan 20 18:14:01.224 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Jan 20 18:14:01.224 [err] Reading config failed--see warnings above.
Please help