Linux by Ripudaman Singh

Image
Customize the Bash [Linux] Your terminal window generally has username@hostname but you can change that we will discuss here how to change it.   link for details: Read-1 Read-2 Read-3 Let's make the Example setup as in above picture with live time cp ~/.bashrc ~/.bashrc.bak  In case of a problem it will help to get back the old file  nano ~/.bashrc Add the follwing line at the Last PS1="\e[0;35m\w\e[m\n\@ \e[0;35m$\e[m " close the nano by ctrl X, Y enter. making Changes active by source ~/.bashrc To customize in your own way see the above links. Get the localhost at some other name [Linux] Open your terminal and type  sudo nano /etc/hosts map your name with localhost address like 127.0.0.1       localhost 127.0.1.1       ripudaman # The following lines are desirable for IPv6 capable hosts ::1 ctrl X, y enter All done you can access the localhost at your describe name for me its ripudaman (helpful when making twitter app which runs on localhost) Getting port is al

Redis

REDIS

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server
sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.default
redis-server
redis-cli

What is Redis?

Redis is a KeyValue based datastore which is an in-memory type dataStore that implies all the data is stored in memory i.e RAM of the server. Since or Due to the in-memory structure of Redis it is extremely fast. Due to the use of RAM to make it persistent RDB (Snapshots) or AOF is used. Generally, snapshots are used for the Backups and  AOF is used for the Data regular persisting. Redis has lots of data structure which makes it easy to store data in most effientWay. It is used in Caching of our data for fast access and as a message broker like Kafka. To use Redis with our code Client is used. 

Small implementation.

Task manager WebApp with NodeJs and Redis Github-ripu502












Comments

Popular posts from this blog

CS IT PDFS

Make whatsapp Number links

Linux by Ripudaman Singh