본문 바로가기

AWS

EC2 인스턴스 생성후 스토리지 추가 하기 t2.micro 로 생성 하면 기본 8G 밖에 안준다. 이걸 내가 원하는 용량 만큼 늘릴수 있다. 기존에 8G 를 50G로 늘려 놓은 상태고 100G 로 늘렸다. 당연한 이야기지만 용량이 늘어나면 늘어날수록 사용비용이 늘어난다. t2.micro 같은 경우 1시간당 0.0025달러 정도 일거다 # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 79 model name : Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz stepping : 1 microcode : 0xb000038 cpu MHz : 2300.061 cache size : 46080 KB physical id : 0 si.. 더보기
aws jenkins 설치 하기 AWS 접속 하고 # amazon-linux-extras install epel # wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo #rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key # yum install jenkins -y # yum install java* -y 이러면 정상 적으로 설치가 완료 된다. 외부에서 접속 할 수 있는 IP 로 해서 접속 하면 된다. http://ip:8080 정상적으로 구동 되는것을 볼 수 있다. 더보기
Please login as the user "ec2-user" rather than the user "root". aws 환경에서 user 계정이 아닌 root 계정으로 로그인 하려면 Please login as the user "ec2-user" rather than the user "root". 위와 같이 에러가 발생 된다. root 계정으로 정상 적으로 접속 하려면 우선 # vi /etc/ssh/sshd_config #PermitRootLogin yes 주석을 삭제 하고 저장 # cp /home/ec2-user/.ssh/authorized_keys /root/.ssh/ key 파일을 root 위치에 저장 # service sshd restart 하면 정상적으로 root 로 저장 된다. root 암호는 ubuntu 와 같이 초기 암호 설정 해주면 된다. # sudo passwd root 더보기

728x90
320x100