일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- 닌텐도스위치
- 클리어
- 요리
- 카카오
- PERL
- 포탈
- OSX
- 설치
- 맛집
- Linux
- Mac
- 구글
- game
- 아이폰
- 이마트트레이더스
- 유튜브
- 프렌즈런
- Java
- Python
- IntelliJ
- 인그레스
- 판교
- Installation
- 공략
- 게임
- Ingress
- arduino
- 맥북
- Today
- 822
- Total
- 3,225,514
목록Redis (4)
준호씨의 블로그
hiredis 를 yum 이나 apt-get 등으로 사용할 수 없고, ansible 버전이 2.1 보다 낮은 경우 make 를 사용할 수 없는데 그런 경우 사용하는 방법입니다. hiredis-0.14.0.tar.gz 는 https://github.com/redis/hiredis/releases 에서 미리 받아 두고 ansible 의 files 디렉토리에 넣어 둡니다. task 는 다음과 같이 작업합니다. sudo 나 tags, dest 디렉토리 등은 상황에 맞게 넣어 주시면 됩니다. - name: unarchive logstash unarchive: src=hiredis-0.14.0.tar.gz dest=/work/ tags: - lib_hiredis - name: make && make install ..
CentOS Linux 7 기준이다. redis 버전은 3.2 이다. 환경에 따라 조금씩 방식이 달라질 수 있다. 외부 접속 오픈 redis 서버를 centos 에 그냥 설치 했더니 locahost 에서만 접근 가능 한 상태. 외부에서도 접근 가능 한게 편할거 같아서 설정 수정 /etc/redis.conf 파일 수정 bind 설정이 bind 127.0.0.1 로 되어 있는데 이렇게 되면 localhost 에서만 접근 가능 하다. bind 설정을 주석처리 해 주면 어디서나 접근 가능하다. bind 설정을 주석처리 하면 아무나 접근 가능 하다는게 문제가 될 수 있음. password 설정 password 를 설정하려면 /etc/redis.conf 에서 requirepass 를 설정 해 주면 된다. 단순하게 ..
모듈이 설치 되어 있지 않은 경우 $ perl -e 'use Redis' Can't locate Redis.pm in @INC (you may need to install the Redis module) (@INC contains: /usr/local/lib/perl5/site_perl/5.18.2/i686-linux /usr/local/lib/perl5/site_perl/5.18.2 /usr/local/lib/perl5/5.18.2/i686-linux /usr/local/lib/perl5/5.18.2 .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. 모듈이 잘 설치 되어 있는 경우 $ perl -e 'use Redis' 아무 내용이 출력..
redis 설치 방법은 간단하다. http://redis.io/download 가보면 방법이 있는데 다음 명령어면 기본적인 설치는 끝이라고 볼 수 있다. 물론 상세한 커스터마이징은 별도. $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz $ tar xzf redis-2.8.3.tar.gz $ cd redis-2.8.3 $ make 그런데 32bit 환경 리눅스에서 컴파일 할 때 종종 아래와 같은 오류가 나곤 한다. zmalloc.o: In function `zmalloc_used_memory': /home/junho85/server/redis-2.8.3/src/zmalloc.c:223: undefined reference to `__sync_add..