1. Please prepare a computer with Linux operating system.
2. Install docker
Platform |
x86_64/amd64 |
ARM |
ARM64/AARCH64 |
yes |
no |
yes |
|
yes |
yes |
yes |
|
yes |
no |
yes |
|
yes |
yes |
yes |
|
yes |
no |
no |
|
no |
no |
no |
Note: There are 6 types of docker, among which we highly recommend Ubuntu. We set up hyperlinks for each docker, you can click to download and install.
3. Make volume directory
We show an example in Linux.
# Get root right
$ su
# make a run time directory for mount
$ mkdir /agent
# make log dir for store log files
$ cd /agent
$ mkdir log
There is the directory struct.
/
`-- agent
`-- log
4. Make config file
Make a new config file named agent_conf.json.
Attention Config file name is agent_conf.json. DO NOT MODIFY IT.
$ cd /agent
$ touch agent_conf.json
Now here is the directory struct.
/
`-- agent
|-- agent_conf.json
`-- log
The full path of those files and directory are:
/agent/agent_conf.json
/agent/log/
Attention The config file agent_conf.json and the directory log are same level , both of those are in the agent directory.
5. Modify config file content
The format of config file is showing down below. You can copy the example into your agent_conf.json and modify base on that.
{
"account":[
{
"name":"novablock",
"weight":1
}
],
"account_mode":0,
"agent_listen_ip":"0.0.0.0",
"agent_listen_port":8888,
"agent_rpc_port":16580,
"auto_start":false,
"offline_keep_mining":false,
"pools":[
{
"address":"btc.s.novablock.com",
"port":443
}
]
}
- account [array]: agent account, if account_mode is 1, agent will use this account to mining in the pool.
- name [string]: account
- weight [int 1-99]: if there are multi account , agent will calculate the weight.
- account_mode [int 0-1]: agent type.
- 0 : Will use the account name in every miner.
- 1 : Will use the account name in this config file.
- agent_rpc_port [int 0-65535] : useless .
- agent_listen_ip [string]: Agent's listen IP address.
- agent_listen_port [int 0-65535]: Agent's listen port, miners will connect to this port.
- auto_start [bool]: useless.
- offline_keep_mining [bool]: useless
- pools[array]: pools settings which Agent will connect. You can put serval pool's settings here.
- address [string] : Mining pool address. You can simply use btc.s.novablock.com.
- port [int 0-65535] : Mining pool listen port [int 0-65535] are use 1883, 443, 25.
6. Download docker image
$ docker pull registry.cn-hongkong.aliyuncs.com/mining_smart_agent/btcagent:3.0.5
7. Run docker image
- Make sure you have create the /agent directory
- Make sure you have create the config file agent_conf.json and have a log directory in the save agent directory.
$ docker run -d -v /agent/:/work/agent --name btcagent --network="host" --restart=always registry.cn-hongkong.aliyuncs.com/mining_smart_agent/btcagent:3.0.5
8. Miner connect
- Address is the LAN IP of computer which the smart agent docker image is running on.
- Port is agent_listen_port which in your config file agent_conf.json.
9. Check logs
There are 2 way to check logs.
- All logs are in the /agent/log/ dirctory.
- Input below command to see the realtime logs.
$ docker logs --tail=50 --follow btcagent
Note: The user only needs to copy the content after the $ prefix, but does not need to copy the $. Please see the example below.
Example: $ ls
You only need to copy “ls”.
Comments
0 comments
Please sign in to leave a comment.