mongodb restart command ubuntu
sudo apt update
sudo apt install -y mongodb
//checking service and db
sudo systemctl status mongodb
or service mongodb status
//start service
sudo systemctl start mongod
or service mongodb start
//stop service
sudo systemctl stop mongod or
service mongodb stop
sudo systemctl restart mongodb
# it will restarts running mongodb serverwget -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 focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl restart mongod
Also in C++:
- how to test a 3rd party python library across multiple environments
- how to update git
- wsl2 access folder from windows
- rename a running docker container
- ubuntu install influx
- EXPRESS generator
- git check differences between two projects
- remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
- get string after character shell script
- ubuntu 20.10 how to open zip file
- ver version de linux
- shell script function read
- install react native navigation
- powershell delete files older than 15 days
- check that redis is running
- Git blame
- shell script current time
- git create new repo from branch
- ubuntu access database from terminal
- get all branches from remote
- how to convert .qrc file in python
- npm ERR! code ENOENT npm ERR! syscall rename while trying to install npm install react-native-maps --save-exact
- git merge by ssh key
- cli generate random string