QuickStart系列:docker部署之Memcached


memcached是一套分布式的高速緩存系統。

docker鏡像 :https://hub.docker.com/_/memcached

安裝:

docker run --name my-memcache -d memcached memcached -m 64

能夠發揮多核的優勢,不支持持久化。

 

 

 運行成功后,查看端口是 11211

安裝可視化工具

docker run -it -p 8080:8080 -e MEMADMIN_USERNAME='memUser' -e MEMADMIN_PASSWORD='memPassword' -e MEMCACHED_HOST='memcached.hostname.or.ip' -e MEMCACHED_PORT='memcached.port' vesica/memadmin:latest

 示例:

docker run -it -p 8080:8080 -e MEMADMIN_USERNAME='memUser' -e MEMADMIN_PASSWORD='memPassword' -e MEMCACHED_HOST='192.168.233.90' -e MEMCACHED_PORT='11211' vesica/memadmin:latest
報錯

Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
[Mon Sep 02 14:12:31.796809 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2l configured -- resuming normal operations
[Mon Sep 02 14:12:31.796895 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
[Mon Sep 02 14:12:31.809995 2019] [mpm_prefork:notice] [pid 1] AH00170: caught SIGWINCH, shutting down gracefully

 

 

相關資料

鏡像地址: https://hub.docker.com/r/vesica/memadmin

使用c# 鏈接

(待續)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM