Alibaba Cloud, Alibaba Cloud Lightweight Application Server select Hong Kong (OKX is in Hong Kong), system image CentOS, package is 34 yuan/month, 2G RAM. Pay monthly (or half a year). It is a cost-effective option currently.
Amazon ec2 has many optional regions, and the Binance and Huobi Exchanges have the option of Tokyo, with the lowest delay. Generally, the lowest configuration t2.small is enough. But you need to bind a visa credit card to pay.
Vultr is cheap and has many options. It supports Alipay payment. However, the server and website may be blocked, and the correct Internet access is required.
Server input: wget https://www.fmz.com/dist/robot_linux_amd64.tar.gz
to download (the Shift+Ins
key is pasted on the terminal). If prompted that wget does not exist, run yum install wget - y
to install wget
. Other systems also have corresponding download tools.
If a certificate problem is prompted (as shown in the following figure):
When downloading with wget you can use: –no-check-certificate parameter.
For example: wget --no-check-certificate https://www.fmz.com/dist/robot_linux_amd64.tar.gz
When downloading with curl you can use: -k parameter.
For example: curl -O -k https://www.fmz.com/dist/robot_linux_amd64.tar.gz
tar - xzvf robot_linux_amd64.tar.gz
to decompress (after entering the robot, press TAB to complete the path automatically)../robot -s node. fmz. com/xxxxxx -p yourFMZpassword
, the number string represented by xxxxxx is different for each user. The details are found at https://www.fmz.com/m/add-node. YourFMZpassword represents your FMZ website login password, which is required to decrypt API Key.
Prompt such as: 2018/07/05 05:04:10 Login OK, SID: 62086, PID: 7226, Name: host. localdomain
, the operation succeeds. If you encounter permission problems, run chmod +x robot
.nohup ./robot -s node.fmz.com/xxxxxx -p yourFMZpassword &
in the background.screen
command to make the docker run in the background. You can enter the password without explicitly (the command parameter does not add -p), and you can search for it by yourself.Dockers on FMZ generally do not need to be upgraded. If new exchanges are added, bugs are modified, or dockers are too old, they can be upgraded as the following steps:
ls
to view the file.We can see logs robot robot_linux_amd64.tar.gz
, where logs is the log folder, robot is the docker execution program, and robot_linux_amd64.tar.gz is the original compressed package.
2. Execute rm - rf robot*
to delete the old robot program and compressed file package at the same time, and keep the log.
3. Execute wget https://www.fmz.com/dist/robot_linux_amd64.tar.gz
to download a new docker package.
4. Execute tar -xzvf robot_linux_amd64.tar.gz
to unzip.
5. Execute nohup ./robot - s node.fmz.com/xxxxxx - p yourFMZpassword &
to run in the background, node.fmz.com/xxxxxx
can be found in https://www.fmz.com/m/add-node.
The advantage of upgrading in this way is that the log can be retained, and the robots run by the old docker will not stop (they have been loaded into memory to run). To upgrade the docker of a robot, you only need to stop the robot, change the docker in the parameter interface (the id of the latest docker is the largest) and restart.
If the old docker no longer runs the robot, the page can be deleted directly on https://www.fmz.com/m/nodes.