Linux下运行memcached失败

  • Post author:
  • Post category:linux



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