AWS

[Redis] 전송 중 데이터 암호화가 활성화된 레디스 연결 시 에러 - jemalloc/jemalloc.h, openssl/ssl.h

폭풍저그김탁구 2022. 9. 19. 11:51
zmalloc.h:50:10: fatal error: jemalloc/jemalloc.h: No such file or directory
sentinel.c:34:10: fatal error: openssl/ssl.h: no such file or directory

 

1. 독스를 제대로 따랐는지 확인하기

sudo yum -y install openssl-devel gcc
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make distclean
make redis-cli BUILD_TLS=yes
sudo install -m 755 src/redis-cli /usr/local/bin/

출처

https://docs.aws.amazon.com/ko_kr/AmazonElastiCache/latest/red-ug/in-transit-encryption.html

 

ElastiCache 전송 중 데이터 암호화(TLS) - Amazon ElastiCache for Redis

파라미터 TransitEncryptionEnabled(CLI: --transit-encryption-enabled)는 CreateReplicationGroup(CLI: create-replication-group) 작업을 사용하는 경우에만 사용할 수 있습니다.

docs.aws.amazon.com

 

2. 그래도 안 되면

cd deps
make hiredis jemalloc linenoise lua

 

출처

https://mozi.tistory.com/536

 

[Redis] jemalloc No such file or directory 오류 해결하기

상황 레디스 압축파일을 해제한 후 make 명령어를 수행하면 아래처럼 jemalloc No such file or directory 오류가 발생합니다. 1 2 3 4 5 6 7 8 9 10 11 [root@redis-5.0.7]# make cd src && make all make[..

mozi.tistory.com