dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
dnf --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos
dnf distro-sync
Step-1:
Create a new instance with same OS as previous one or create it from AIM made from old instance
Step-2:
Shutdown the old instance and detach the volume
Step-3:
Shutdown new instance Attached the detached volume to new instance and start the instance
Step-4:
Login new instance using ssh console
Run the following commands:
lsblk
df -h
cd mnt
mkdir oldvolume
sudo mount /dev/sda1 mnt/oldvolume
cd mnt/oldvolume/root/.ssh
sudo vi authorized_keys
Now add your public key and save
umount /dev/sda1
sudo shutdown now
Step-5:
Now detach the dev/sda1 volume from new instance and attach to old instance as dev/sda
Step-6:
Reboot old instance from AWS dashboard and login your old instance using ssh console
Note: Your old instance IP will be changed after doing this if no elastic IP
The following are the different ways to install mongo-gui.
From npm:
Install the module globally using the command :
npm install -g mongo-gui
Then use the command to run the application
mongo-gui
From github:
First of all, clone the mongo-gui repository using the command git clone https://github.com/arunbandari/mongo-gui or download the zip file from here.
Change the directory to mongo-gui
cd mongo-gui
Install all the dependencies npm install
Start the application using either
npm start or node server.js
Note: Node.js must be installed on your machine to run this application
From Docker Hub:
Docker compose
version: '3'
services:
mongo-gui:
container_name: "mongo-gui"
image: ugleiton/mongo-gui
restart: always
ports:
- "4321:4321"
environment:
- MONGO_URL=mongodb://localhost:27017
Mongo GUI Usage
The commands mongo-gui and npm start or node server.js start the application with the following configuaration:
URL (-u): mongodb://localhost:27017
PORT (-p): 4321
and the application will be accesible at http://localhost:4321
To connect to any other mongodb instance, pass mongo connection string as an argument, eg:
Installed via npm: mongo-gui -u mongodb+srv://<username>:<password>@host/<dbnames>?retryWrites=true&w=majority'
Installed via github: (npm start --/node server.js) -u mongodb+srv://<username>:<password>@host/<dbnames>?retryWrites=true&w=majority'
Available options:
-u: url, mongo-gui tries to connect to this mongodb instance
-p: port, mongo-gui listens on this port
=RANK(number,ref,[order]) To rank in descending order, we will use the formula =RANK(B2,($C$5:$C$10),0) If we want unique ranks, we can use...