我让他在运行此命令时出现以下错误/etc/init.d/celerybeat start
:
chown: changing ownership of `/srv/project/logs': Operation not permitted
chown: changing ownership of `/var/run': Operation not permitted
chown: changing ownership of `/var/run': Operation not permitted
chmod: changing permissions of `/var/run': Operation not permitted
chown: changing ownership of `/srv/project/logs': Operation not permitted
chmod: changing permissions of `/srv/project/logs': Operation not permitted
Starting celerybeat...
ubuntu@ip-10-239-73-129:/etc/default$ LockFailed: [Errno 13] Permission denied: '/var/run/celerybeat.pid'
它运行的用户是' celery '。
我在创建用户后运行此命令:
adduser --system --no-create-home --disabled-login --disabled-password --group celery
但仍然得到权限被拒绝错误。为什么?