Linux下运行memcached失败

Linux下运行memcached失败

1.错误信息如下

[root@localhost ~]# memcached

can't run as root without the -u switch

2.错误原因:

linux 不允许使用 root用户运行memcached

3.解决方法:

管理memcached的用户, 新建用户memcached

useradd –r memcached

原文地址:https://www.cnblogs.com/lovebing/p/5991463.html