memcache命令启动参数中文解释_PHP

WBOY
Release: 2016-06-01 11:57:34
Original
891 people have browsed it

memcache

复制代码 代码如下:
usr/local/bin/memcached -d -m 128 -u root -l 192.168.0.10 -p 12121 -c 256 -P /tmp/memcached.pid

-p 监听的TCP端口(默认: 11211)
-U UDP监听端口 (默认: 11211, 0 时关闭)
-d 以守护进程方式运行
-u 运行运行 Memcached的账户 非root用户
-m 最大的内存使用单位是MB 默认是64MB
-c 软连接数量默认是1024
-v 输出警告和错误信息
-vv 打印客户端的请求和返回信息
-h 打印帮助信息
-i 打印memcached和libevent的版权信息
-l 绑定地址 (默认:所有都允许,无论内外网或者本机更换IP,有安全隐患,若设置为127.0.0.1就只能本机访问)
-P 将PID写入文件,这样可以使得后边进行快速进程终止, 需要与 -d 一起使用

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!