본문 바로가기
728x90
반응형

Programming161

redis 조회 시 raw 데이터 출력 (redis 한글) redis 에서 한글 저장 시 아래와 같이 인코딩되어 저장된다. # redis-cli set kr "한글" OK # redis-cli get kr "\xed\x95\x9c\xea\xb8\x80" 이때 한글 인코딩이 깨지지 않은채 실제 저장했던 데이터를 보고 싶으면 --raw 옵션을 사용하면 한글 인코딩이 깨지지 않은 데이터를 볼 수 있다. # redis-cli --raw get kr 한글 redis client와 같은 ui 툴에서는 raw 데이터로 바로 보여주나 redis-cli를 사용하여 한글 데이터를 볼 경우 --raw 옵션을 사용하면 한글 데이터를 깨지지 않고 볼 수 있다. 2019. 6. 20.
[Terraform] AWS with Terraform - ec2 instance (테라폼 ec2 인스턴스 생성) [Terraform] AWS with Terraform - ec2 instance (테라폼 ec2 인스턴스 생성) 참고 - terraform configuration EC2 instancecreate aws-ec2.tf1234567891011121314151617181920212223data "aws_ami" "ubuntu" { most_recent = true filter { name = "name" values = ["ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-*"] } filter { name = "virtualization-type" values = ["hvm"] } owners = ["099720109477"] # Canonical} res.. 2018. 12. 10.
[Terraform] AWS with Terraform - terraform configuration (테라폼 설정) [Terraform] AWS with Terraform - terraform configuration (테라폼 설정) Get access_key and secret_key Add user Set aws cofigureset providerCreate aws.tf 12345provider "aws" { access_key = "ACCESS_KEY" secret_key = "SECRET-KEY" region = "ap-northeast-1"}Colored by Color Scriptercs set vpccreate vpc.tf 1234567891011121314151617resource "aws_vpc" "test" { cidr_block = "172.10.0.0/20" tags { Name = "test".. 2018. 12. 10.
[Terraform] AWS with Terraform - install terraform (테라폼 설치) [Terraform] AWS with Terraform - install terraform (테라폼 설치) download terraform from the official download page. unzip the file and move Terraform binary to /usr/bin. 1$ sudo mv terraform /usr/bin && sudo chmod +xcs test `terraform` command 1234567891011121314151617181920212223242526272829303132333435$ terraformUsage: terraform [-version] [-help] [args] The available commands for execution are li.. 2018. 12. 10.
728x90
반응형