daily pastebin goal
4%
SHARE
TWEET

block explorer cheatsheet

osteth Oct 30th, 2018 (edited) 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -----tutorial video-----
  2. https://www.youtube.com/watch?v=laeV2slJgc8
  3.  
  4. ------Block explorer pastes-----
  5.  
  6. sudo apt-get update
  7. sudo apt install nodejs-legacy
  8. sudo apt-get install npm
  9. sudo apt-get install
  10.  
  11. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
  12. echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
  13.  
  14. sudo apt-get update
  15. sudo apt-get install -y mongodb-org
  16. sudo systemctl start mongod
  17.  
  18. Start mongodb cli:
  19. mongo
  20. use explorerdb
  21. db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )
  22. exit
  23.  
  24. git clone https://github.com/iquidus/explorer explorer
  25. cd explorer && npm install --production
  26. cp ./settings.json.template ./settings.json
  27.  
  28. To use forever to start (run in directory of explorer):
  29. forever start -c "npm start" ./
  30.  
  31. crontab information:
  32. */1 * * * * cd explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
  33. */5 * * * * cd explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top