is where my software is stored and can be stored in/user/lib/in3: Configured as default JDK version sudo update-alternatives--install/usr/bin/java Java/home/share/tools/jdk1.8.0_45/bin/java -sudo update-alternatives--install/usr/bin/javac Javac/home/share/tools/jdk1.8.0_45/bin/javac -What this means is to create two soft connections: [email protected]:~$ ll/usr/bin/Java lrwxrwxrwx1Root root A -- to- A +:
Ubuntu 16.04 itself is a python, and he's a 2-self. X and 3.X, two versions, the default is 2. X. Here's a note of how to switch between versions and how to switch the Python version to 3. The method under X.
1. View the installed Python version of the Ubuntu system and the Python version currently in use
Ls/usr/bin/python*python--version
Or
2. Set update-alternatives switch python version
Show Python instead of version information
Update-
use the source command to make it effective source ~/. Profile2.4 Change the default JDK version to see the Java version and priority of the system installedsudo update-Alternatives--dispaly Javathe system is installed by default only OPEN-JDK, and the priority is 1051, set a higher priority to Oracle's JDK, such as 1200, in the terminal window to execute the following command:sudo update-Alternatives--
Directory
Generation of chunks
Validation links for Blocks
Validation process
Merkle tree structure
Generation of chunks
Miners build blocks before they dig the mines.
Package Coinbase transactions into chunks
Package high-priority trades in a trading pool into chunks
优先级 = 交易的额度 * UTXO的深度/交易的size
Anti-dust attack
Create a chunk header版本号|父区块哈希|Me
components.
II: Genesis BLOCK:
After the above installation is successful, direct start, you can connect the public chain. Now create a private chain by configuring the creation block. In the same network, the creation block must be the same, otherwise it cannot be unicom.
Create a ETH root directory folder that creates a new creation block JSON file Piccgenesis.json under the root directory. The contents are as follows:
{
"Nonce": "0x0000000000000042",
"Mixhash": "0x00000000000000000000000000
Below I listed three kinds of solutions, the front two are some two big guy to try out, the third kind is I cast out.
First kind of solution
Reprinted from Http://mp.weixin.qq.com/s/AB9vj1EzOgWT7JyryfQhDg problem scene
Recently, the technical Group of friends often asked such a problem, the environment has been set up, Geth node also successfully started, but why when the implementation of the Miner.start () method did not dig ore, return null.
In fact, not only these friends, I was in the star
Eth.accounts
(4) Create a new account
Personal.newaccount (' password ')
We create two accounts here. Then use the eth.accounts to view the account:
(5) The account can be assigned to a variable, while the balance of the account is queried
(6) The above mentioned log file, we reopen a terminal, we use the following command to open the log:
Tail-f File_to_log_output
(7) Start ore digging in Geth console: Miner.start () Ethernet Square perform miner.start return nullwhether to set miner
: {a94f5374fce5edbc8e2a8697c15331677e6ebf0b} account
#1: {c385233b188811c9f355d4caec14df86d6248235} Account
#2: {7f444580bfef4b9bc7e14eb7fb2a029336b07c9d}
The key file has a filename format of utc-
。账号列出时是按字母顺序排列,但是由于时间戳格式,实际上它是按创建顺序排列。
using the Geth console
In order to create a new account with Geth, we must first turn on Geth in console mode (or you can use Geth attach to attach the console to an already running case):
1
2
3)
4
5
> Geth console 2>> file_to_log_o
or as a sample of glacial cores. The surface may change with the seasons, even before it is blown away by the wind. But the deeper the geology, the more stable the geological layer becomes. Hundreds of feet deep, you will see a rock that has been preserved for millions of years but remains intact. In the blockchain, the last few blocks may be modified due to the recalculation of the blockchain fork. The newest six blocks are like topsoil of several inches deep. However, after these six blocks,
format for installing Java 6 is as follows:
Java 6 (for Android 2.1 + ):
$ Sudo add-Apt-repository "Deb http://archive.canonical.com/lucid partner"
$ Sudo add-Apt-repository "Deb-Src http://archive.canonical.com/ubuntu lucid partner"
$ Sudo apt-Get update
$ Sudo apt-Get install sun-java6-jdk
If you want to switch to the Java version (when multiple Java versions are installed), enter the following command:
Sudo Update-alternatives -- config Java
Sudo
As we all know, GCC does not support "make Uninstall ". A recommended installation method is to install GCC in a path you specify. When you do not need a GCC version number, you only need to remove the corresponding version number.
If you already have an old version number in your system, the simplest method is:
1) join? Personal package archive in the repositories
2. repositoris)
3) upgrade procedure
sudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt-get updateJoin? New Ppa (peronal
Step 1: Check the version and installed version
Lee @ Lee :~ $ Ls/usr/bin/GCC *
/Usr/bin/GCC/usr/bin/gcc-4.5/usr/bin/gcc-4.6
If 4.5 is missing, install it.
Sudo apt-Get install gcc-4.5 g ++-4.5
G ++-V
Gcc-V
Step 2: Add options
Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-4.5 40
Sudo Update-alternatives -- install/usr/bin/GCC gcc/usr/bin/gcc-4.6 30
Sudo Update-
=.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib
Next
# Source/root/. bashrc switch to your user and then under source.# Echo $ JAVA_HOME/Usr/java/java7
If openjdk is not installed, enter
#/Usr/java/java7/bin/java-version
Now let's start the link. add to the bin of the system and use the update-alternatives command to maintain the soft connection of the system. update this command to let the system know which command to use. the last parameter is priority. h
Switch GCC, G ++, and gfortran versions in Ubuntu
Step 1: use which gcc, which g ++, and which gfortran to view the location. My result is/usr/bin/gcc; /usr/bin/g ++ and/usr/bin/gfortran
Part 2: first, let's take a look at the gcc commands installed in your Ubuntu: ls/usr/bin/gcc *-l;
Gcc/g ++ in ubuntu 12.04 is 4.6. We will downgrade the default system to 4.4.
$ Sudo apt-get install gcc-4.4
$ Sudo update-alternatives -- install/usr/bin/gcc/usr/bin/gc
may have the default JDK, such as openjdk, the following work is required to set the installed JDK to the default JDK Version. Run the code: [plain] sudo update-alternatives -- install/usr/bin/java/usr/lib/jvm/java-7-sun/bin/java 300 sudo update-alternatives -- install/ usr/bin/javac/usr/lib/jvm/java-7-sun/bin/javac 300 sudo update-alternatives -- install/usr/bi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.