memcached 开机启动 (Ubuntu)
1. 编译安装 memcached 见官方网站 http://memcached.org
2. 编写开机启动脚本 memcached (最简化版)
#!/bin/sh memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 2048 -P /tmp/memcached.pid
3. 将其放在 /etc/init.d,更改权限,安装到系统初始化脚本,
$ sudo cp memcached /etc/init.d $ cd /etc/init.d $ sudo chmod 755 memcached $ sudo update-rd.c memcached defaults$ sudo reboot
4. 开机检查状态
$ systemctl status memcached.service
(完)
相关推荐
changecan 2020-11-19
sunnnyduan 2020-10-16
lonesomer 2020-09-17
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liyansring 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28
suosuo 2020-07-28
83911930 2020-07-28
liym 2020-07-20
CNxuwang 2020-07-20