IndianWebPortal.com

Something Different In Linux

Home » Archive by category 'aws'

Resize root Volume on AWS Linux Instance

Posted by Rishikesh Vispute Categories: aws

I have created a new CentOS Linux instance. I had selected 50GB of root volume during creating of instance but when system comes online it was showing only 8GB of disk is usable. I tried to resize root disk using resize2fs, I get the following message root@tecadmin [~]# resize2fs /dev/xvda1 The filesystem is already 16775167  [ Read More ]

script to change hostname for AWS instance

Posted by Rishikesh Vispute Categories: aws

If you want to set the public DNS as a hostname to the AWS linux  server then you can set it by using following scripts. The default public DNs for the AWs instance in the format “ec2-51-163-230-103.compute-1.amazonaws.com” and when we create the instance from AWs then it set internal hostname for the server. We can  [ Read More ]

How to find the IP address of an amazon EC2

Posted by Rishikesh Vispute Categories: aws

Question : How to find the IP address of an amazon EC2 by using linux command Ans : If you run “ifconfig –a” on an amazon ec2 instance (linux), it will give you the internal IP address, which is not accessible from outside world. Here is a way to get the public and private IP  [ Read More ]

Increase Swap Space to Amazon EC2 Linux

Posted by Rishikesh Vispute Categories: aws

Type the following command with count being equal to the desired block size: dd if=/dev/zero of=/extraswap bs=1M count=4024 Setup the swap file with the command: mkswap /extraswap To enable the swap file immediately but not automatically at boot time: swapon /extraswap To enable it at the boot time, add the following entry into /etc/fstab: /extraswap  [ Read More ]

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...