Debian 11.2にMemcachedをインストールする
環境
# cat/etc/debian_version
11.2
インストールの方法
1.インストール可能Memcachedの確認
# sudo apt show memcached Package: memcached Version: 1.6.9+dfsg-1 Priority: optional Section: web
2.Memcachedのインストール
# apt-get install memcached libmemcached-tools -y
3.ステータスを確認します
# systemctl status memcached ● memcached.service - memcached daemon Loaded: loaded (/lib/systemd/system/memcached.service; enabled; vendor pre> Active: active (running) since Sat 2022-03-12 18:59:08 JST; 8min ago
4.memcachedプロセスを確認します
# ss -antpl | grep memcached LISTEN 0 1024 127.0.0.1:11211 0.0.0.0:* users:(("memcached",pid=2399,fd=26))
5.Memcachedのバージョンを確認します
Memcachedに接続します
# telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'.
ここで「version」と入力して、Enterキーを押下します。
version
VERSION 1.6.9
6.Memcachedのステータスを確認します
stats STAT pid 2399 STAT uptime 10627 STAT time 1647089773 STAT version 1.6.9 STAT libevent 2.1.12-stable STAT pointer_size 64 STAT rusage_user 2.216063 STAT rusage_system 1.792467 STAT max_connections 1024 STAT curr_connections 1 STAT total_connections 3 STAT rejected_connections 0 STAT connection_structures 2 STAT response_obj_oom 0 STAT response_obj_count 1 STAT response_obj_bytes 32768 STAT read_buf_count 4 STAT read_buf_bytes 65536 STAT read_buf_bytes_free 16384 STAT read_buf_oom 0 STAT reserved_fds 20 STAT cmd_get 0 STAT cmd_set 1 STAT cmd_flush 0 STAT cmd_touch 0 STAT cmd_meta 0 STAT get_hits 0 STAT get_misses 0 STAT get_expired 0 STAT get_flushed 0 STAT delete_misses 0 STAT delete_hits 0 STAT incr_misses 0 STAT incr_hits 0 STAT decr_misses 0 STAT decr_hits 0 STAT cas_misses 0 STAT cas_hits 0 STAT cas_badval 0 STAT touch_hits 0 STAT touch_misses 0 STAT auth_cmds 0 STAT auth_errors 0 STAT bytes_read 123 STAT bytes_written 2268 STAT limit_maxbytes 67108864 STAT accepting_conns 1 STAT listen_disabled_num 0 STAT time_in_listen_disabled_us 0 STAT threads 4 STAT conn_yields 0 STAT hash_power_level 16 STAT hash_bytes 524288 STAT hash_is_expanding 0 STAT slab_reassign_rescues 0 STAT slab_reassign_chunk_rescues 0 STAT slab_reassign_evictions_nomem 0 STAT slab_reassign_inline_reclaim 0 STAT slab_reassign_busy_items 0 STAT slab_reassign_busy_deletes 0 STAT slab_reassign_running 0 STAT slabs_moved 0 STAT lru_crawler_running 0 STAT lru_crawler_starts 19 STAT lru_maintainer_juggles 10733 STAT malloc_fails 0 STAT log_worker_dropped 0 STAT log_worker_written 0 STAT log_watcher_skipped 0 STAT log_watcher_sent 0 STAT unexpected_napi_ids 0 STAT round_robin_fallback 0 STAT bytes 69 STAT curr_items 1 STAT total_items 1 STAT slab_global_page_pool 0 STAT expired_unfetched 0 STAT evicted_unfetched 0 STAT evicted_active 0 STAT evictions 0 STAT reclaimed 0 STAT crawler_reclaimed 0 STAT crawler_items_checked 0 STAT lrutail_reflocked 0 STAT moves_to_cold 1 STAT moves_to_warm 0 STAT moves_within_lru 0 STAT direct_reclaims 0 STAT lru_bumps_dropped 0 END