Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----tutorial video-----
- https://www.youtube.com/watch?v=laeV2slJgc8
- ------Block explorer pastes-----
- sudo apt-get update
- sudo apt install nodejs-legacy
- sudo apt-get install npm
- sudo apt-get install
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
- 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
- sudo apt-get update
- sudo apt-get install -y mongodb-org
- sudo systemctl start mongod
- Start mongodb cli:
- mongo
- use explorerdb
- db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )
- exit
- git clone https://github.com/iquidus/explorer explorer
- cd explorer && npm install --production
- cp ./settings.json.template ./settings.json
- To use forever to start (run in directory of explorer):
- forever start -c "npm start" ./
- crontab information:
- */1 * * * * cd explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
- */5 * * * * cd explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement