如果没有带 -u root 的话就会报:

can't run as root without the -u switch

解决方法:

带-u root就行了。

出现的原因:

1、可能在root用户下启动

2、可能在rc.local下启动,因为rc.local启动时默认是root权限的。而memcached默认不加u参数启动就是当前的用户。

相关文章:

  • 2021-09-08
  • 2021-09-16
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-10-29
  • 2021-06-27
相关资源
相似解决方案