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