Last update at :2024-05-13,Edit by888u
Monero is an open source, decentralized virtual currency. It is currently open for trading on major virtual currency exchanges with the XMR ticker. Its Market Cap ranks 9th among all virtual currencies, higher than Ethereum Classic (ETC), etc. High-circulation currency. Currently, each XMR is worth approximately $110.
Monero wallet: https://hitbtc.com/. After registration, you will get the Monero wallet address in the background.
There are many Monero mining pools. There are many mining pools listed on the official website http://moneropools.com/. You can choose the mining pool you want to join. What I chose here is xmr.nanopool.org.
1. Tutorial on installing and mining Monero under Centos 7
init initialization
yum -y install centos-release-scl cmake3 hwloc-devel libmicrohttpd-devel openssl-devel yum -y install devtoolset-4-gcc* scl enable devtoolset-4 bashreplace cmake replace cmake
yum -y remove cmake wget https://cmake.org/files/v3.7/cmake-3.7.2.tar.gz tar zxf cmake-3.7.2.tar.gz cd cmake-3.7.2 ./bootstrap make && make install export PATH=$PATH:/usr/local/bin/install installation
git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake. make install2. Installation and mining Monero tutorial on Ubuntu, upgrade and initialization
add-apt-repository ppa:ubuntu-toolchain-r/test apt update apt install gcc-5 g++-5 make update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/ cd /tmp/cmake-3.4.1/ && ./configure && make && sudo make install && cd - update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force apt install libmicrohttpd-dev libssl-dev libhwloc-devInstallation
git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake. make install3. Tutorial on installing mining Monero under Debian
echo "deb http://ftp.us.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list apt-get update apt-get install -t unstable gcc-5 g++-5 make update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1 --slave /usr/bin/g++ g++ /usr/bin/g++-5 curl -L http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz | tar -xvzf - -C /tmp/ cd /tmp/cmake-3.4.1/ && ./configure && make && make install && cd - update-alternatives --install /usr/bin/cmake cmake /usr/local/bin/cmake 1 --force apt install libmicrohttpd-dev libssl-dev libhwloc-dev git clone https://github.com/fireice-uk/xmr-stak-cpu xmr-stak cd xmr-stak cmake. make install4. UBUNTU16.04 one-click installation of minergate1. Mining pool registration (withdrawal from his company is only 0.1 XMR. And the mining machine basically has a one-click package and a simple GUI. It is easy to operate.):
https://minergate.com/
2. Mining machine download address:
https://cn.minergate.com/download/deb-cli
3. Install the mining machine with one click:
curl -L -o minergate-cli-release.deb https://cn.minergate.com/download/deb-cli && dpkg -i minergate-cli-release.deb4. Mining on idle:
screen -S mine minergate-cli -user YOUR-EMAIL -bcn 2 -fcn+xmr 3You can set different cores to mine different mines at the same time. If you do not fill in the number of cores, all cores will be used by default. YOUR-EMAI: Your registered email-bcn 2: Use 2 cores to mine BCN-fcn+xmr 3: Use 3 cores to mine FCN+XMR
5. Related questions 1. Change the donation ratio. Edit the file donate-level.h, find the constexpr double fDevDonationLevel, change the corresponding value, and recompile.
2. Use edit xmr-stak/bin/config.txt, fill in your own wallet address, mining pool address, Payment ID and other information and fill in the CPU configuration information (can be fine-tuned), then execute ./xmr-stak -cpu can automatically start mining. The main modifications are as follows: a. Lines 25 and 26 "cpu_threads_conf": null, changed to: "cpu_threads_conf": [
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },], change according to your own CPU. b. "wallet_address": change to your own wallet address c. "pool_address": change the mining pool depending on the situation d. "httpd_port": 0, change to other ports to view the mining situation in real time
3. After the installation and settings are completed, start mining
screen -S mine ./xmr-stak-cpuExecuted under xmr-stak/bin/.
4. Solution for MEMORY ALLOC FAILED: mmap failed
sysctl -w vm.nr_hugepages=128Then edit the file /etc/security/limits.conf and add the following two lines at or before the penultimate line:
soft memlock 262144 hard memlock 262144or
echo "* soft memlock 262144" >> /etc/security/limits.conf echo "* hard memlock 262144" >> /etc/security/limits.confThen restart or log out and log in again.
5. Regarding donations, edit the donate-level.h file under xmr-stak and change constexpr double fDevDonationLevel = 2.0 / 100.0; to constexpr double fDevDonationLevel = 0.5 / 100.0; it can also be changed to other ratios.
6. Official download of monero client (available for various systems) https://getmonero.org/downloads/https://github.com/fireice-uk/xmr-stak-cpu
7. My configuration file
"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 }, ], "use_slow_memory" : "warn", "nicehash_nonce" : false, "aes_override" : null, "use_tls" : false, "tls_secure_algo" : true, "tls_fingerprint" : "", "pool_address" : "xmr-eu1.nanopool.org:14444", "wallet_address" : "42Y3G8N9XXNQs1XNQeTBHTNot1iEBpHcT2EkoCQMnaEJT2N2jg7TbKYjXqrT3anyZ22j7DEE74GkbVcQFyH2nNiC3depW2J", "pool_password" : "", "call_timeout" : 10, "retry_time" : 10, "giveup_limit" : 0, "verbose_level" : 3, "h_print_time" : 60, "daemon_mode" : true, "output_file" : "", "httpd_port" : 1024, "prefer_ipv4" : true,8. Regarding filling in Payment ID and wallet address: Generate Payment ID:
openssl rand -hex 32The format of the wallet address is: wallet address.Payment ID
10. XMR trading address https://hitbtc.com/exchange/XMR-to-BTC
via: https://qing.su/article/129.html, http://www.hostloc.com/space-uid-3598.html, http://www.hostloc.com/thread-406398 -1-1.html
Recommended site searches: registered domain name, Changsha server, foreign space service provider, how to check the domain name registration number to check the detailed IP address, dynamic IP vps, foreign space, Taiwan host, search IP, registration-free virtual space,
发表评论