The 15 Most Important Linux Commands For AWS
This guide will take you through some of the most common and important Linux commands for AWS for your daily professional life.
How to install Apache in Amazon Linux Machine
- sudo -i (Login as Root User)
- Yum install httpd
- Service httpd start
- Chkconfig httpd on
- Cat > /var/www/html/index.html (Creating a web page)
- Webserver1 (ctrl + D)
- Service apache2 restart (Restart Apache in Ubuntu)
- lsblk (Commands to mount EBS Volume in Linux )
- mkfs -t ext4 /dev/xvdf
- file -s /dev/xvdf
- mkdir /Data
- mount /dev/xvdf /Data
- df -hT
- vi /etc/fstab
- /dev/xvdf /Data ext4 defaults,nofail 0 0
No comments:
Post a Comment