AlmaLinux9.0にmemcachedをインストールする手順

環境
OSバージョンの確認
# cat /etc/redhat-release
AlmaLinux release 9.0 (Emerald Puma)

memcachedのインストール手順
1.libmemcachedモジュールをインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf install libmemcached
# sudo dnf install libmemcached
# sudo dnf install libmemcached

2.memcachedインストールを行います

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo dnf install memcached
# sudo dnf install memcached
# sudo dnf install memcached

3.詳細情報を確認します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# rpm -qi memcached
Name : memcached
Epoch : 0
Version : 1.6.9
Release : 6.el9
Architecture: x86_64
Install Date: 20220611051902
Group : Unspecified
Size : 454247
License : BSD
Signature : RSA/SHA256, 20220312155421秒, Key ID d36cb86cb86b3716
Source RPM : memcached-1.6.9-6.el9.src.rpm
Build Date : 20220210174133
Build Host : x64-builder02.almalinux.org
Packager : AlmaLinux Packaging Team <packager@almalinux.org>
Vendor : AlmaLinux
URL : https://www.memcached.org/
Summary : High Performance, Distributed Memory Object Cache
Description :
memcached is a high-performance, distributed memory object caching
system, generic in nature, but intended for use in speeding up dynamic
web applications by alleviating database load.
# rpm -qi memcached Name : memcached Epoch : 0 Version : 1.6.9 Release : 6.el9 Architecture: x86_64 Install Date: 2022年06月11日 05時19分02秒 Group : Unspecified Size : 454247 License : BSD Signature : RSA/SHA256, 2022年03月12日 15時54分21秒, Key ID d36cb86cb86b3716 Source RPM : memcached-1.6.9-6.el9.src.rpm Build Date : 2022年02月10日 17時41分33秒 Build Host : x64-builder02.almalinux.org Packager : AlmaLinux Packaging Team <packager@almalinux.org> Vendor : AlmaLinux URL : https://www.memcached.org/ Summary : High Performance, Distributed Memory Object Cache Description : memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
# rpm -qi memcached
Name        : memcached
Epoch       : 0
Version     : 1.6.9
Release     : 6.el9
Architecture: x86_64
Install Date: 2022年06月11日 05時19分02秒
Group       : Unspecified
Size        : 454247
License     : BSD
Signature   : RSA/SHA256, 2022年03月12日 15時54分21秒, Key ID d36cb86cb86b3716
Source RPM  : memcached-1.6.9-6.el9.src.rpm
Build Date  : 2022年02月10日 17時41分33秒
Build Host  : x64-builder02.almalinux.org
Packager    : AlmaLinux Packaging Team <packager@almalinux.org>
Vendor      : AlmaLinux
URL         : https://www.memcached.org/
Summary     : High Performance, Distributed Memory Object Cache
Description :
memcached is a high-performance, distributed memory object caching
system, generic in nature, but intended for use in speeding up dynamic
web applications by alleviating database load.

4.firewallが設定されていればポート許可を設定します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo firewall-cmd --add-port=11211/tcp --zone=public --permanent
success
# sudo firewall-cmd --add-port=11211/tcp --zone=public --permanent success
# sudo firewall-cmd --add-port=11211/tcp --zone=public --permanent
success

firewallをリロードします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo firewall-cmd --reload
success
# sudo firewall-cmd --reload success
# sudo firewall-cmd --reload
success

5.memcachedを起動します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo systemctl start memcached
# sudo systemctl start memcached
# sudo systemctl start memcached

自動起動を設定します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# sudo systemctl enable memcached
Created symlink /etc/systemd/system/multi-user.target.wants/memcached.service → /usr/lib/systemd/system/memcached.service.
# sudo systemctl enable memcached Created symlink /etc/systemd/system/multi-user.target.wants/memcached.service → /usr/lib/systemd/system/memcached.service.
# sudo systemctl enable memcached
Created symlink /etc/systemd/system/multi-user.target.wants/memcached.service → /usr/lib/systemd/system/memcached.service.

 

AlmaLinux

Posted by arkgame