Devops Project #1
So i Got the problem in installing the user data file directly in the ec2 instance so i solved it by -
cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrolist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
ps -ef | grep memcache - this is for the memcache port check open tcp ports
ss -tunlp - to show all the open tcp ports
ss -tunlp | grep 11211 - (your port)