728x90
반응형
openstack 캐시 서비스는 자주 사용하는 정보를 메모리에 저장해 두었다가 필요할때 바로 사용할수 있는 서비스
캐시 서비스느 보통 컨트롤러 노드에 설치


# 캐시 서비스 확인

# apt search memcached

-- 설치정보 나옴 (길어서 생략)

# netstat -ntpa |grep LISTEN
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      822/memcached

# find . -name memcached.conf
./etc/memcached.conf

 

# 서비스 할 IP로 수정

# vi /etc/memcached.conf 

# Specify which IP address to listen on. The default is to listen on all IP addresses
# This parameter is one of the only security measures that memcached has, so make sure
# it's listening on a firewalled interface.

# Default connection port is 11211
-p 11211

# Run the daemon as root. The start-memcached will default to running as root if no
# -u command is present in this config file
-u memcache

#-l 127.0.0.1
-l 192.168.56.30    <--- 수정

 

# 서비스 확인 및 재기동

# service --status-all

 [ + ]  memcached
 
# service memcached stop
# service memcached start
# service memcached status
● memcached.service - memcached daemon
     Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2024-01-06 16:42:47 KST; 3s ago
       Docs: man:memcached(1)
   Main PID: 29408 (memcached)
      Tasks: 10 (limit: 4537)
     Memory: 4.5M
     CGroup: /system.slice/memcached.service
             └─29408 /usr/bin/memcached -m 64 -p 11211 -u memcache -l 192.168.56.30 -P /var/run/memcached/memcached.pid

Jan 06 16:42:47 ubuntu.localdomain systemd[1]: Started memcached daemon.

 

 

# 재기동 전 후 비교 

# netstat -ntpa |grep LISTEN
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      822/memcached

# netstat -an |grep LISTEN
tcp        0      0 192.168.56.30:11211     0.0.0.0:*               LISTEN      29408/memcached
728x90
반응형
LIST

+ Recent posts