Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

Data in MongoDB (inside EC2 instance) gets erased automatically after approximately 1 day

$
0
0

I am facing an issue where data in MongoDB (inside EC2 instance) gets erased automatically after a certain interval of time (approximately after 1 day).

i use the aws free tier service and in that i launch the simple t3.large ubuntu instance and gp3 8gib volume and i connect it with putty and i install my dependency like apache node npm nvm pm2 and for database i install the mongodb using following commands:

sudo apt-get install gnupg curlcurl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \   sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \   --dearmorecho "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.listsudo apt-get updatesudo apt-get install -y mongodb-orgsudo systemctl start mongodsudo systemctl status mongodsudo systemctl enable mongodmongoshsudo nano /etc/mongod.confIn that {bind 0.0.0.0}sudo systemctl status mongodsudo systemctl enable mongod

but after setup, I am facing an issue where data in MongoDB (inside EC2 instance) gets erased automatically after a certain interval of time (approximately after 1 day). what changes are required?


Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>