Browsed by
Month: March 2019

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. 912 total views, 3 views today

912 total views, 3 views today

Spring Boot Docker Deployment Steps

Spring Boot Docker Deployment Steps

Spring Boot Docker Deployment Steps Pre requisite: Install Java. [code] sudo yum install java-1.8.0 sudo yum remove java-1.7.0-openjdk [/code] Install Maven [code] sdk install maven [/code] Note: SDKMan can be used to install the maven. Spring Boot Jar – Docker Deployment Steps: Step 1: Create some folder in your linux machine.[create build folder inside /var] Step 2: Docker deployment file creation Create the below content as Dockerfile: [Filename: Dockerfile without any extension and must be available in “/var/build” path] [code]…

Read More Read More

846 total views, no views today