https://ethereum.stackexchange.com/questions/3229/geth-what-happened-to-logfile

geth 2> file

Example:

geth –dev –rpcapi “db,personal,eth,net,web3” –rpc –rpcaddr “0.0.0.0” –rpccorsdomain “*” –mine 2>eth_output.log

.Dockfile

RUN geth –dev –rpcapi “db,personal,eth,net,web3” –rpc –rpcaddr “0.0.0.0” –rpccorsdomain “*” –mine 2>eth_output.log

===========

Have console & log & mining

./geth –datadir ./node2/data/ –networkid 55555 –port 30303 –rpcapi=db,eth,net,web3,personal,web3 –rpc –rpccorsdomain=* –password password.txt –mine –minerthreads=1 –verbosity 3 console 2» /var/log/geth.log

PS:–rpccorsdomain=*  or –rpccorsdomain “*”  is ok,  –rpcorsdomain * is bad

Have console & log & mining & unlock

./geth –datadir ./node2/data/ –networkid 55555 –port 30303 –unlock 0x00000d0000b0000a000a000a0000d00fb0a0fb0b –rpcapi=db,eth,net,web3,personal,web3 –rpc –rpccorsdomain=* –password password.txt –mine –minerthreads=1 –verbosity 3 console 2» /var/log/geth.log

PS:0x00000d0000b0000a000a000a0000d00fb0a0fb0b  account id

Have console & log & mining & unlock & backgroud run

tmux

./geth –datadir ./node2/data/ –networkid 55555 –port 30303 –unlock 0x00000d0000b0000a000a000a0000d00fb0a0fb0b –rpcapi=db,eth,net,web3,personal,web3 –rpc –rpccorsdomain=* –password password.txt –mine –minerthreads=1 –verbosity 3 console 2» /var/log/geth.log

In tmux

  [Ctrl + b] d

  exit

or

  [Ctrl + b] s 

Shell

tmux ls

tmux attach -t 0