wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
apt-get update
apt-get install -y mongodb-org
ps --no-headers -o comm 1
systemctl start mongod
systemctl status mongod
mongo
root@server:~# mongo
MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("6b814716-52cb-4dde-8d9d-f365adc26916") }
MongoDB server version: 4.4.6
Welcome to the MongoDB shell.
>use admin
>db.createUser({ user: 'server', pwd: '1234', roles: ['root'] })
몽고 DB ID/PASSWORD 설정
mongoimport --db beer-market --collection beers --file ./beers.json --jsonArray
bind_ip 를 0.0.0.0 으로 수정
service mongod restart
apt install npm
npm install
npm init
npm install express --save
npm install express
npm install --save express express-graphql graphql
npm install nodemon -g
npm install node-cron
npm start
'이더리움' 카테고리의 다른 글
풀노드 구축 (0) | 2024.03.13 |
---|---|
EIP-1559 분석 (2) | 2021.07.12 |
스마트컨트렉 함수 접근 방법 (0) | 2020.12.08 |
token 송금 (0) | 2019.10.28 |
rinkeby.io facebook으로 테스트 이더 받기 (0) | 2019.10.25 |