RabbitMq Tutorials

RabbitMq Tutorials

RabbitMQ is publish-subscribe tool which is effectively used in microservices for their inter communications. RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, Message Queuing Telemetry Transport, and other protocols.   1. How to install RabbitMQ in Docker Container ? 1.1 RabbitMQ – Docker pull: docker pull rabbitmq     1.2 RabbiMQ – Docker Run: sudo docker run –restart=always…

Read More Read More

68 total views, no views today

How to update jenkins in docker container

How to update jenkins in docker container

sudo docker container exec -u 0 -it czcjenkins bash here czcjenkins is my container name. wget http://updates.jenkins-ci.org/download/war/2.176.1/jenkins.war This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login. mv ./jenkins.war /usr/share/jenkins/ chown jenkins:jenkins /usr/share/jenkins/jenkins.war here jenkins is the user, so keep same as it is only. sudo docker restart czcjenkins 108 total views, no views today

108 total views, no views today

Java Program To validate the Bracket Expression

Java Program To validate the Bracket Expression

This program checks for the valid bracket string expression and returns true/false. Basically we need to use stack effectively to check the valid brackets.   Algorithm/Idea is: Keep the list of allowed brackets (predefined) in some collections, here we are using the map<character, character> to keep the open and closed brackets of different types. Iterate the string expression character by character and check whether the character is of only allowed brackets (either open / close) If the bracket is open…

Read More Read More

201 total views, no views today

[Resolved] Caused by: java.net.BindException: Address already in use: bind

[Resolved] Caused by: java.net.BindException: Address already in use: bind

In windows, run this below command, netstat -ano | findstr :9092 this command will list down all the processes which are running in this port (9092). To kill the process in windows run the below command taskkill /pid 21680 /f 21680 is the process id displayed after running the netstat above command. /f to kill the process forcefully. You will be able to see this response, SUCCESS: The process with PID 21680 has been terminated. 678 total views, no views today

678 total views, no views today

Nginx Server Notes

Nginx Server Notes

I struggled a lot to understand nginx during my first assignments in nginx configurations for one of the angular deployments and little interesting things in it. I captured as much as possible in this post to help someone who is like me!! Below entries are added to nginx.conf file which usually exist in /etc/nginx/nginx.conf Basic commands: sudo service nginx start – to start nginx server sudo service nginx stop – to stop nginx server sudo service nginx status – returns…

Read More Read More

491 total views, no views today

Ionic 4 Notes

Ionic 4 Notes

This blog covers major issues and resolutions which all the developers face while using ionic/cordova.   1. Debugging Empty white screen ionic issue: Are you facing empty white screen after your splash screen, then run the below command and see there is any issue in your html/js code snippets, ionic cordova run android –prod /   2. Ionic API Building command: [Run this command to build your ionic app to unsigned apk] ionic cordova build –release android / ionic cordova…

Read More Read More

552 total views, no views today

IP Canonicalization in Nginx Http/Https

IP Canonicalization in Nginx Http/Https

IP Canonicalization in Nginx Http/Https: IP canonicalization is to redirect IP Address to the domain. This actually a part of SEO, so good to have IP canonicalization, but you can’t achieve this using shared web hosting. IP Canonicalization in Nginx Http/Https: Add the below block to above of your default server block in your nginx conf file, which is default available in /etc/nginx/nginx.conf This below block works for both http and https IP canonicalization in nginx server. [code] server {…

Read More Read More

995 total views, no views today

Fix for AWS SSH Connection Hangs ?

Fix for AWS SSH Connection Hangs ?

Fix for AWS SSH Connection Hangs ? You could have not added the SSH TCP connection to your ec2 instance, thay may be creating this issue aws SSH connection Hangs issue. Follow the simple 3 steps to get away from this, 1. Login to AWS EC2 Console and click on Security Groups (available in the left sidebar). 2. Select your EC2 instance’s security group then click on the Inbound tab. 3. Now add the SSH Rule like this to resolve…

Read More Read More

772 total views, no views today

Steps to Increase AWS Disk Size

Steps to Increase AWS Disk Size

Steps to Increase AWS Disk Size 1. Login to AWS Console 2. Click EC2 and navigate to your currently running instances. 3. Click the instance and note down your Root device and Block Device 4. Click on Block Devices then click EBS ID to navigate to your volume page. In other way, you can directly click the volumes under Elastic Block Storage and reach the same page:   5. Click the Actions -> Modify Volume and Increase the size then…

Read More Read More

666 total views, no views today

How to install MySQL in Docker ?

How to install MySQL in Docker ?

How to install MySQL in Docker ? Installing Particular Version [code] sudo docker pull mysql/mysql-server:5.7 [/code]   Installing Latest Version [code] sudo docker pull mysql [/code]   Running MySql Docker Image: [code] sudo docker run –name mysqlcname -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 –restart always -d mysql [/code] -d => to start it automatically when the server started.     Docker useful commands for Beginners: You can also find other useful docker commands here. 909 total views, no views today

909 total views, no views today