????初稿 - 2018-05-10
? ? 更新 -?2018-05-27
????社區(qū)里面關(guān)于Windows平臺的挖礦介紹很多屯吊,有朋友咨詢Linux平臺下面怎么設(shè)置挖礦程序,今天就用一點時間把有代表性的兩個Linux平臺下的挖礦設(shè)置介紹一下。小白可以參考一下,老鳥請?zhí)^。 今天Ulord主網(wǎng)上線,現(xiàn)在挖礦挖到的就是正式的Ulord幣了躯护,簡稱UT,后續(xù)隨著官方對程序的調(diào)整和完善丽涩,我會持續(xù)更新本文棺滞。
系統(tǒng)的準備
? ? 以兩個目前較流行的Linux系統(tǒng)CentOS 7和Ubuntu 16.04 LTS為例,先默認安裝 CentOS 7 或 Ubuntu 16.04 LTS:
? ? - CentOS 7 系統(tǒng)的安裝請參考:http://www.reibang.com/p/d5bb2a46ea11
? ? - Ubuntu 16.04 LTM 系統(tǒng)的安裝請參考:?http://www.reibang.com/p/c043dcecc53b
????再安裝下面的程序和庫:
? ? - Ubuntu 16.04 LTS
? ? ????# sudo apt-get install -y git build-essential cmake libmicrohttpd-dev libuv1-dev wget unzip
? ? - CentOS 7
????????# sudo yum update -y
????????# sudo yum upgrade -y
????????# sudo yum install -y libtool git cmake libmicrohttpd-devel openssl openssl-devel libstdc++-static wget unzip
? ? ????# sudo yum groupinstall -y 'Development Tools'
? ? ? ? # cd /var/tmp
????????# git clone https://github.com/libuv/libuv.git
? ??????# cd libuv
? ? ? ? #?./autogen.sh
? ? ? ? #?./configure
? ? ? ? #?make
? ? ? ? # make install
通過wget命令下載挖礦程序ulordrig
? ? - CentOS 7 / Ubuntu 16.04 LTS
? ? ????# cd /var/tmp
????????# wget?https://ulord.one/downloads/UlordRig-Linux-V1.0.0.zip
? ? ????# unzip?UlordRig-Linux-V1.0.0.zip
? ? ????# cd?UlordRig-Linux-V1.0.0
? ? ????# chmod 755 ulordrig
????下載完UlordRig后用下面的命令可以看到文件名為 ulordrig 的文件:
? ? ????[root@localhost build]# ls -ltr
????????total 3276
????????-rwxr-xr-x. 1 root root 3342376 May 20 19:39 ulordrig
????????-rw-r--r--. 1 root root? ? 406 May 20 23:32 README.txt
????????-rw-r--r--. 1 root root? ? 508 May 22 12:54 config.json
啟動挖礦程序程序ulordrig
進入到ulordrig所在的目錄矢渊,把下面 "-u" 后面的地址 (uTRHNH71eiW2KMc2rSwmanpXGgDeKMZXdW) 修改成你自己的錢包地址继准,盡情挖礦吧
? ? ????# cd?/var/tmp/ulordrig/build
? ? ????# ./ulordrig -o stratum+tcp://u2pool.org:7200 -u uTRHNH71eiW2KMc2rSwmanpXGgDeKMZXdW.worker1 -p x -t 1
或者直接修改文件夾內(nèi)的?config.json 配置文件,將礦池信息和錢包地址修改成你自己的矮男,然后直接運行
? ? ? ? # ./ulordrig
目前開放的礦池有:
官方礦池:
? ? ? ? 網(wǎng)址:u2pool.org
? ? ? ? 礦池:u2pool.org:7200
全球社區(qū)礦池:
? ? ? ? 網(wǎng)址:u1pool.com
????????礦池:u1pool.com:18888
區(qū)塊鏈瀏覽器
????????https://explorer.ulord.one
進階設(shè)置
ulordrig的參數(shù)列表如下移必,有興趣的可以玩玩看:
????-o, --url=URL URL of mining server
????-O, --userpass=U:P? ? ? username:password pair for mining server
????-u, --user=USERNAME? ? ? username for mining server
????-p, --pass=PASSWORD? ? ? password for mining server
????-t, --threads=N? ? ? ? ? number of miner threads
????-v, --av=N? ? ? ? ? ? ? algorithm variation, 0 auto select
????-k, --keepalive? ? ? ? ? send keepalived for prevent timeout (need pool support)
????-r, --retries=N? ? ? ? ? number of times to retry before switch to backup server (default: 5)
????-R, --retry-pause=N? ? ? time to pause between retries (default: 5)
????? ? --cpu-affinity? ? ? set process affinity to CPU core(s), mask 0x3 for cores 0 and 1
????? ? --cpu-priority? ? ? set process priority (0 idle, 2 normal to 5 highest)
????? ? --no-huge-pages? ? ? disable huge pages support
????? ? --no-color? ? ? ? ? disable colored output
????? ? --variant? ? ? ? ? ? algorithm PoW variant
????? ? --user-agent? ? ? ? set custom user-agent string for pool
????-B, --background? ? ? ? run the miner in the background
????-c, --config=FILE? ? ? ? load a JSON-format configuration file
????-l, --log-file=FILE? ? ? log all output to a file
????-S, --syslog? ? ? ? ? ? use system log for output messages
????? ? --max-cpu-usage=N? ? maximum CPU usage for automatic threads mode (default 75)
????? ? --safe? ? ? ? ? ? ? safe adjust threads and av settings for current CPU
????? ? --nicehash? ? ? ? ? enable nicehash/ulordrig-proxy support
????? ? --print-time=N? ? ? print hashrate report every N seconds
????? ? --api-port=N? ? ? ? port for the miner API
????? ? --api-access-token=T access token for API
????? ? --api-worker-id=ID? custom worker-id for API
????-h, --help? ? ? ? ? ? ? display this help and exit
????-V, --version? ? ? ? ? ? output version information and exit