게시물 1,376건
   
레디스 서버 (redis)
글쓴이 : 최고관리자 날짜 : 2013-11-05 (화) 16:17 조회 : 6519
글주소 :
                                
http://cafe.naver.com/junes81/6088


[root@localhost ~]# netstat -anlp |grep LIST
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      31439/memcached
tcp        0      0 127.0.0.1:6379              0.0.0.0:*                   LISTEN      31422/redis-server
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      20870/sshd
tcp        0      0 :::11211                    :::*                        LISTEN      31439/memcached
tcp        0      0 :::80                       :::*                        LISTEN      1564/httpd
tcp        0      0 :::22                       :::*                        LISTEN      20870/sshd
tcp        0      0 :::443                      :::*                        LISTEN      1564/httpd



/etc/redis.conf
port 6379
# If you want you can bind a single interface, if the bind option is not
# specified all the interfaces will listen for incoming connections.
#
bind 127.0.0.1   
# 자기자신만 오픈되어있으며 외부에서 접근을 허용할때는 주석처리를 하거나 알맞게 수정!!


수정후 데몬 리스탓
[root@localhost ~]# /etc/init.d/redis restart
Stopping redis-server:                                     [  OK  ]
Starting redis-server:                                     [  OK  ]
[root@bb ~]# !net
netstat -anlp |grep LIST
tcp        0      0 0.0.0.0:6379                0.0.0.0:*                   LISTEN      2348/redis-server
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      31439/memcached
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      20870/sshd
tcp        0      0 :::11211                    :::*                        LISTEN      31439/memcached
tcp        0      0 :::80                       :::*                        LISTEN      1564/httpd
tcp        0      0 :::22                       :::*                        LISTEN      20870/sshd
tcp        0      0 :::443                      :::*                        LISTEN      1564/httpd
unix  2      [ ACC ]     STREAM     LISTENING     8702   968/dbus-daemon     /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     7122   1/init              @/com/ubuntu/upstart



이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.