DevOps & Cloud Engineering(234)
-
IAM Granting access to your billing page
- 개요 Administrator 권한이라고 하더라도 IAM 계정이 바로 Billing Page에 접근이 불가하다. - IAM의 Billing 접근 활성화 방법 Root Login >> My Account >> IAM User and Role Access to Billing Information >> choose Edit >> Activate IAM Access >> Update - 참고 https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/control-access-billing.html
2022.07.21 -
incomplete multipart uploads 삭제 정책
- 개요 S3에 Multipart로 upload 하는 과정에서 제대로 종료를 못하거나 중간에 끊어졌을 경우 파일이 쌓여서 과금된다. - 확인 방법 S3 Storage Lens >> metric >> Incomplete MPU Bytes >> incomplete multipart uploads >> 대상 bucket 확인 - 삭제 방법 해당 bucket >> Management >> LifeCycleRules >> delete-incomplete-mpu-7 7 days는 상황에 맞게 변경하면 된다. - 참고 https://aws.amazon.com/ko/blogs/aws-cloud-financial-management/discovering-and-deleting-incomplete-multipart-upl..
2022.07.21 -
robomongo ssh tunneling 접속
- 개요 EC2에 설치되어 있는 MongoDB를 PC에 있는 robomongo로 접속하기 - robomongo 설치 https://robomongo.org/download - robomongo 설정 1. ppk file to OpenSSH Key (Load(key) -> Conversations -> Export OpenSSH Key) 2. SSH Tunnel 사용 (Private Key : OpenSSH key) 3. Conncetion 설정 4. Connection Test - 주의 사항 Private key는 ppk 파일이 아니고 OpenSSH Key File EC2의 SG에 My IP SSH Port Open
2022.01.05 -
chrome에서 ogg 파일 재생 안되는 이슈
- 개요 ogg는 너무 짧거나 특정한 이유로 firefox에서는 되지만 chrome 이나 edge 에서는 재생이 안되는 경우가 있다. - 해결 1. mp3로 변환 2. mp3로 변환 후 ogg로 변환
2020.12.02 -
폴더에 있는 파일 변환하기 ffmpeg (ogg->mp3)
- 개요 Windows Power Shell에서 ffmpeg을 이용해서 ogg를 mp3로 변환하는 스크립트 - 스크립트 $files = Get-ChildItem -Path -Filter *.ogg -Recurse foreach ($f in $files) { "" $f.fullname & "\ffmpeg.exe" -i "$($f.Fullname)" "$($f.Directory)$($f.baseName).mp3" }
2020.12.02 -
powershell command (cp, list, rename, find, count)
- 개요 Windows Power Shell에서 사용하는 기본 명령어에 대해 정리 했다. - 예시 txt로 끝나는 파일 리스트 Get-ChildItem *txt wav로 끝나는 파일 리스트를 walist라는 파일로 저장 Get-ChildItem -filter *wav > wavlist.txt txt로 끝나는 파일이름을 log로 끝나는 파일이름으로 변경 Get-ChildItem *txt | Rename-Item -NewName { $_.Name -Replace 'txt', 'wav'} json으로 끝나는 파일 갯수 count (Get-ChildItem -filter *json | Measure-Object).Count 현재 폴더의 파일 갯수 count (Get-ChildItem -Recurse -File ..
2020.11.06 -
java corretto 설치하기
- 개요 AWS JDK 배포판인 corretto의 설치 방법에 대해 정리 했다. - 리눅스에 설치 # yum -y remove jdk && yum install -y java-1.8.0-amazon-corretto-devel java-1.8.0-amazon-corretto # java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment Corretto-8.212.04.2 (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM Corretto-8.212.04.2 (build 25.212-b04, mixed mode) # /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstal..
2020.11.03 -
linux messages에 dhclient log flooding
- 개요 리눅스 서버를 운영하다 보면 dhclient log 관련 로그가 system log 파일을 점유하는 현상이 발생할 수 있다. - 해결 방법 ''echo -e ':programname,isequal,"dhclient" stop\n:programname,isequal,"ec2net" stop' > /etc/rsyslog.d/ignore-dhclient-log.conf'' systemctl restart rsyslog
2020.11.03 -
linux messages에 systemd: Started Session 과점유 현상
- 개요 리눅스 서버를 운영하다 보면 systemd: Started Session 관련 로그가 system log 파일을 점유하는 현상이 발생할 수 있다. - 해결 방법 ''echo 'if $programname == "systemd" and ($msg contains "Starting Session" or $msg contains "Started Session" or $msg contains "Created slice" or $msg contains "Starting user-") then stop'>/etc/rsyslog.d/ignore-systemd-session-slice.conf'' systemctl restart rsyslog
2020.11.03 -
CentOS on Amazon EC2에서 chrony_not_working 에러
- issue AWS에서 ec2로 centos를 사용하는 경우 chrony_not_working가 발생한다. - resolution /etc/chrony.conf server 169.254.169.123 prefer iburst minpoll 4 maxpoll 4 ->위와 같이 설정을 추가한다. systemctl restart chronyd -> chronyd restart chronyc sources -v chronyc tracking -> 위 명령어를 통해 정상 동기화 확인
2020.10.30