How to install Mongodb on centos

1) sudo vi /etc/yum.repos.d/mongodb-org-3.6.repo
press i : for insert mode
then write –
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc

2) sudo yum update
3) sudo yum install mongodb-org
4) sudo systemctl start mongod
5) sudo systemctl reload mongod
6) sudo systemctl enable mongod
7) sudo yum install php-mongo
8) sudo apachectl restart

More – Mongodb

Linux Command

sudo : superuser do
sudo -i : for change other user to user root
cd : change directory
ls : listing
ls -la : listing with full information of files or folder
/ : root directory
~ : home directory
.. : for previous directory
. : current directory
cp fileName copyLocation
scp -r folder/file copyLocation
rm -rf fileName/folderName : remove directory
top : for mysql running query list
du -sh fileName/FolderName : for file or folder size information
df -h : system all memory information
pwd : present working directory
zip filename.zip fileName/folderName
unzip filename.zip : unzip file

to be continue…