跳转至

2. 安装

1. 安装

#controller
yum install memcached python-memcached -y

2. 修改配置文件

sed -i 's#127.0.0.1#192.168.178.11#g' /etc/sysconfig/memcached

3. 开启并设置开机自启

systemctl restart memcached.service
systemctl enable memcached.service

4. 查看端口

#netstat -tunlp|grep memcache
[root@controller ~]# netstat -tunlp| grep memcached
tcp        0      0 192.168.178.11:11211    0.0.0.0:*               LISTEN      8304/memcached
tcp6       0      0 ::1:11211               :::*                    LISTEN      8304/memcached
udp        0      0 192.168.178.11:11211    0.0.0.0:*                           8304/memcached
udp6       0      0 ::1:11211               :::*                                8304/memcached

最后更新: 2022-02-20 08:44:07