Building mining machine with Linux
First of all, the answer: Linux system has more advantages than windows
The main advantages ofare as follows:
< UL >
operation is relatively more stable and maintenance is more convenient
the cost of system resources is small (that is, the hardware requirements are not high), and the mining cost is saved
the installation and debugging are simple, and the technical threshold is lower
fully open source system, free legal edition, more stable and further save mining cost? In fact, you only need two steps to mine under Linux system:
< UL >open the website, enter the mobile phone number, select how many CPUs you want to use to mine, the default is to use 50% of the CPU to mine, click to generate your exclusive command and
is such a simple operation
Yes
please refer to the following tutorial:
Mining with idle Linux server
Mining tutorial of Ethereum Linux system
installation of zcash under Linux to start mining tutorial
IPFs mining machine configuration, I take the interstellar Aoyun mining machine as an example, which is shown in the following aspects:
1, Linux system
at present, many IPFs mining machines on the market still use Windows system, in fact, this is a very unprofessional performance. Windows itself is designed to serve the home computer, that is to say, it will greatly rece the efficiency of mining. Moreover, Linux system has fewer vulnerabilities and higher security than windows system. That's why the interstellar Aoyun uses the Linux operating system
2. In the early stage of IPFs mining, it may not need so many hard disks. If the miner is fully loaded with hard disk, it will not only increase the cost, but also increase the loss of hard disk. And in the late insufficient, you can add and insert the hard disk in time
3. IPFs mining machine supporting hot plug technology can remove and replace the hard disk without shutting down the system and cutting off the power supply, which greatly improves the recovery ability of IPFs mining machine to cope with disasters. Rece the risk of withholding tokens
4, enterprise hard disk
IPFs mining machine is best to use enterprise hard disk, can work 7 * 24 hours, compared with ordinary hard disk, higher is not a level
preparing food materials:
virtual machine: VMware_ workstation_ full_ 12.5.2
linux image file: ubuntu-14.04.1-desktop-amd64. ISO
JDK1.8: jdk-8u11-linux-x64. Tar. GZ
Tomcat: apache-tomcat-8.0.39-windows-x64. Zip
first of all, I need a virtual machine to build my own Linux server, so I downloaded vmvares from the Internet. There are a lot of vmvares, I tried the latest one, I feel good, and then, The next Linux image file is searched on the Internet, and the virtual machine installation tutorial is installed step by step. It took two or three days here, mainly e to software problems. I found many ways, but when I look back, I just use the online system home, script home, or recommended one. I can't download one from CSDN, which wastes a lot of points. I'm a little disappointed with it, Originally thought it is omnipotent, but nothing, many ways. Also searched a lot of articles, encountered some problems, such as: the system is not compatible, version does not match what, anyway, not easy to use, never, step by step, finally can be regarded as security, the first joy
then the next important thing is that when the Linux system is available, you can first issue a Linux command document and click it first, because I mainly deploy it, and I don't need too many commands, so I won't look down after learning a few pages, and I can continue to look at it when I have a chance
prepare for frying pan: first install a JDK, use 1.8, the latest version, but the version is not important, unless the JDK version required by the project is high, the installed Linux is very complete, and the browser can download it. Note that Linux for JDK, otherwise it can't. Then create a new Java folder in the root directory (here, the root directory should be connected to / usr / via CD instead of home / xxx. You can view the current path through PWD) / usr /, which is used to place the decompressed JDK file. Here, because the suffix is tar.gz, you can decompress it directly with the tar - XF command. The commands are the simplest, and the specific middle - XF can be connected to the network, No detailed explanation
cutting vegetables: it took a little time to configure JDK's environment variables, because it felt a bit awkward. Unlike in windows, you need to pay attention to configuring environment variables. Your user may not have permission and need to use root permission. But I didn't know the password at first, so I set the initial password through sudo passwd, and then entered it through Su root, Of course, the password is invisible. After entering, find the profile file in the / etc / folder, and add the variable parameter at the end of the file through the file editing command VI profile:
java_ HOME=/usr/java/jdk1.8.0_ 11
PATH=$JAVA_ HOME/bin:$PATH
CLASSPATH=.:$JAVA_ HOME/jre/lib/rt.jar:$JAVA_ HOME/lib/dt.jar:$JAVA_ Home / lib / tools. Jar
there are differences here, so there is no doubt. For example, after adding the path, WQ saves and exits, and then you can view it, echo $path views the path. At this time, it is not configured. You need to activate the command source profile to save the environment variables in the profile. You need to activate it every time you come in, If you want to only view and not edit the file, you can enter cat + file name to view it
stir fry: now you can unzip the Tomcat to a custom folder. Mine is home / pengyy / Tomcat / and you can modify the port number in the config file and edit the server.xml with the VI command. Later, there was a conflict in the port 8005 when it was started. I directly changed 8088 and then changed the HTTP request port to 8001. OK, Tomcat configuration is complete, There are not too many steps
serve: type a completed web project into a war package and decompress it in webapps under Tomcat. It is said on the Internet that when Tomcat is started, it can be decompressed automatically by putting it in it. However, mine didn't happen. I don't know why, so I decompressed it manually. Create a new folder with the same root path as the project, and then decompress it with the command Jar - xvf xxx.war, However, if the jar command is not found, it is because the JDK environment variable has not been activated. I have been stuck in this place for a long time, because the jar command is based on the JDK. Unless you unzip it, the unzip command can unzip it and create a new folder. However, it's not easy for me to use it, so I use jar. It's a little troublesome
Start: go to the bin directory under Tomcat and enter the command to start. / start.sh & and the termination command is. / shutdown.sh & which can be prompted when you press the tab key. Actually (. /) is the meaning of the current path and can be omitted. If it is added, you need to press Ctrl + C to return to the command line after starting or terminating. In this way, the project is started. You can view the log, and go to the logs directory of Tomcat to view the catalina.out log file. You can use the cat view file command or tail - f (countdown line can be a number) catalina.out to view it. If the port number is occupied, you can use the command lsof - I: port number to view the process number whose port number is occupied, or stop the process, or modify the port number of Tomcat. When you are not sure which project has been terminated, you can check whether there are running projects by entering the command PS - EF | grep Java. You can kill which running project by killing - 9 process number. Finally, get the IP address of the virtual machine through ifconfig or IP command, and access it through IP + port number + project root path on the host
feeling after eating: it's very detailed. Although it's a bit wordy, the first time I write it is not only for reviewing, but also for practicing my ability of summing up. If there are too many mistakes, please point out them in time, and I will revise them more. Through this study, I feel that I've really gained a lot of benefits. I didn't know anything about it before, but I don't know much about it, From the installation to the problem, to the solution, to the successful operation, I helped myself to understand too many details and what I didn't understand. Maybe I'm not so proficient, but I've made much progress than before. I hope everyone will not only go to see one thing, but also practice more to go further. Come on! Little programmer
additional desserts (commands):
cat (view text),
VI edit text commands: a (insert right side of character), I (insert left side of character),: WQ, ZZ (save exit),: Q, q Exit without saving: w (save to continue editing), Ctrl + F (turn page), / character (backward search),? Character (look forward),:! Bash (exit, execute command, exit, return to continue editing), X (delete single character), DD (delete positive line), and, U (back modify)
MV file filefolder (move file)
CP file filefolder ( file)
RM - RF / F file (delete folder / file)
LS (view file directory)
LS - A (view all files including hide)
ll (list all files including permission)
bird cloud focuses on providing one-stop core network cloud deployment services for indivial developer users, small and medium-sized enterprises and large enterprises, so as to simplify user cloud deployment to zero and use cloud computing easily and quickly. Bird cloud server adopts high-end Intel Haswell CPU, which can provide a variety of functions according to the different needs of enterprises. The three-level cache is expanded to 20m, and the performance is improved by at least three times compared with the previous generation; The memory adopts the latest DDR4 memory mole, which is 70% higher than the traditional DDR3, greatly improving the data access speed; The disk adopts high-speed sas3 SSD high-frequency solid-state disk, which can meet all the requirements of SAS interface system, greatly improve the performance of user database, improve the response speed in large concurrency scenario, and guarantee the perfect user experience under high load.
first of all, we need to choose the appropriate Linux operating system as the server system, and we recommend using Fedora 8, Fedora 10 and so on. I think it is relatively stable in the process of long-term use! How to install the operating system is not much to say. After installing the system, you need to add Linux OS users. You can use the command "adser XXX"; Add XXX users,
1. According to the purpose of the machine, many services are not needed. If Linux is just a desktop, you don't need sendmail, httpd, and many other services
if your server is just a web server, you can also shut down many services. To do this, go to the administration menu and check the service items. Just undo any service options you don't want to start
if you don't know anything, please ask me.