CentOS7安装Memcached
来源:互联网 发布:浒山中学 知乎 编辑:程序博客网 时间:2024/06/17 01:21
CentOS7安装Memcached 三步曲
1.yum 安装
yum clean all
yum -y update
yum -y install memcached
2.Memcached 运行yum -y update
yum -y install memcached
memcached -h
//查看考号修改配置
vim /etc/sysconfig/memcached
内容如下:
PORT=”11211″
USER=”memcached”
MAXCONN=”1024″
CACHESIZE=”64″
OPTIONS=”"
可以修改端口,用户和最大内存,缓存大小
//重启,启动,开机启动,状态,关闭
systemctl restart memcached
systemctl start memcached
systemctl enable memcached
systemctl status memcached
systemctl stop memcached
//查看考号修改配置
vim /etc/sysconfig/memcached
内容如下:
PORT=”11211″
USER=”memcached”
MAXCONN=”1024″
CACHESIZE=”64″
OPTIONS=”"
可以修改端口,用户和最大内存,缓存大小
//重启,启动,开机启动,状态,关闭
systemctl restart memcached
systemctl start memcached
systemctl enable memcached
systemctl status memcached
systemctl stop memcached
memcached-tool 127.0.0.1:11211 stats
#127.0.0.1:11211 Field Value
accepting_conns 1
auth_cmds 0
auth_errors 0
bytes 0
bytes_read 7
bytes_written 0
cas_badval 0
cas_hits 0
cas_misses 0
cmd_flush 0
cmd_get 0
cmd_set 0
cmd_touch 0
conn_yields 0
connection_structures 11
curr_connections 10
curr_items 0
decr_hits 0
decr_misses 0
delete_hits 0
delete_misses 0
evicted_unfetched 0
evictions 0
expired_unfetched 0
get_hits 0
get_misses 0
hash_bytes 524288
hash_is_expanding 0
hash_power_level 16
incr_hits 0
incr_misses 0
libevent 2.0.21-stable
limit_maxbytes 67108864
listen_disabled_num 0
pid 27929
pointer_size 64
reclaimed 0
reserved_fds 20
rusage_system 0.055134
rusage_user 0.091092
threads 4
time 1429863174
total_connections 11
total_items 0
touch_hits 0
touch_misses 0
uptime 910
version 1.4.15
3.扩展一下,安装PHP-memcache扩展,防火墙放开11211端口accepting_conns 1
auth_cmds 0
auth_errors 0
bytes 0
bytes_read 7
bytes_written 0
cas_badval 0
cas_hits 0
cas_misses 0
cmd_flush 0
cmd_get 0
cmd_set 0
cmd_touch 0
conn_yields 0
connection_structures 11
curr_connections 10
curr_items 0
decr_hits 0
decr_misses 0
delete_hits 0
delete_misses 0
evicted_unfetched 0
evictions 0
expired_unfetched 0
get_hits 0
get_misses 0
hash_bytes 524288
hash_is_expanding 0
hash_power_level 16
incr_hits 0
incr_misses 0
libevent 2.0.21-stable
limit_maxbytes 67108864
listen_disabled_num 0
pid 27929
pointer_size 64
reclaimed 0
reserved_fds 20
rusage_system 0.055134
rusage_user 0.091092
threads 4
time 1429863174
total_connections 11
total_items 0
touch_hits 0
touch_misses 0
uptime 910
version 1.4.15
yum -y install php-pecl-memcache
如果是PHP56版本的应该运行
yum -y install php56w-pecl-memcache
防火墙放开11211
如果是PHP56版本的应该运行
yum -y install php56w-pecl-memcache
防火墙放开11211
firewall-cmd --permanent --zone=public --add-port=11211/tcp
检查端口是否开放
检查端口是否开放
echo stats | nc memcache_host_name_or_ip 11211
0 0
- memcached的安装(centOS7)
- Centos7安装Memcached
- CentOS7安装Memcached
- CentOS7安装Memcached 三步曲
- centos7安装配置memcached
- centos7安装memcached
- 【Centos7】安装memcached
- centos7 安装memcached以及扩展
- centos7 安装memcached以及扩展
- CentOS7 Apache+Mysql+PHP+Memcached安装
- CentOS7安装Memcached和PHP扩展
- centos7安装memcached及配置等
- 在centos7下编译安装memcached
- CentOS7 安装Memcached及ownCloud9.1配置Memcached
- centos7 安装memcached和php-memcached扩展以及memcached使用方式
- Centos7下关于memcached的安装和简单使用
- CentOS7下memcached的安装与简单使用
- centos7系统下安装php-memcached拓展及简单使用
- c++上机实验3——作业
- C 【进制表示 及 相互转化】
- LNMP环境搭建与实例运行
- 命令行运行.py,Pycharm打开的问题。
- hdu 4589 Special equations
- CentOS7安装Memcached
- Linux C 编程vim优化
- Visual Studio 2015 Community连接到Mysql
- 进制转换
- LeetCode 37 Sudoku Solver
- 矩阵快速幂专题(三)
- BZOJ 1565 NOI 2009 植物大战僵尸 最小割 拓扑排序
- 杭电4535
- Entity Framework 5.0 Code First全面学习