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 twitt...

RabbitMQ


INSTALL RabbitMQ

sudo apt-get update -y
sudo apt-get upgrade
sudo apt-get install erlang
sudo apt-get install rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl start rabbitmq-server
sudo systemctl status rabbitmq-server
sudo rabbitmq-plugins enable rabbitmq_management

http://localhost:15672 username guest  password guest by default


Tuitorial

CHANGING User Will All Permisssions




Small Implementation

HelloWorld Github  sender and receiver for message
Workers and Task Github  new_task.js sends the tasks to the worker.js and if the multiple worker.js is started it will be evenly distributed and execute the task. All the persistence is added so the chances of data loss can be stoped.
Producer consumer Github Producer sends the message which is received by all the receiver connected emit_log.js >>>>>>>>>> producer and receive_log.js >>>>>> consumer
Subscribe to particular Github  Direct Exchange is used for this see the Code.
Topic subscribe Deeper Direct Github  Topic Exchange is used see the code or Docs

Comments

Popular posts from this blog

GIT tool for GITHUB/

Linux by Ripudaman Singh

CS IT PDFS