Update: Please see these articles for a better way to mine Monero on CPUs
This guide will show you how to compile CPUMiner-Multi on Centos 7 for mining Monero.
First lets install the packages needed:
yum groupinstall "Development Tools" yum install curl-devel openssl-devel git screen screen cd /usr/local/src/ git clone https://github.com/tpruvot/cpuminer-multi.git cd cpuminer-multi ./autogen.sh ./configure CFLAGS="-march=native" --with-crypto --with-curl ./build.sh
Now all that is left is to run the cpuminer command. You can use the following: (Be sure you change the XMR address to your own, unless you want to mine for me :))
./cpuminer -a cryptonight -o stratum+tcp://pool.usxmrpool.com:3333 -u 46dpA9N1KDE9yERcSGASXPUyA4ga1GrPq5sDXqwwjQL2dAmf5kvgpNQUWdvyT1r55pfwfvuBn2h7YQPhZFYdWtjWUVUTobh -p x
If you found this helpful, consider a donation!
Results on one of our 32 core servers: