数字海洋管理sidekiq工作者 [英] digital ocean manage sidekiq worker

查看:95
本文介绍了数字海洋管理sidekiq工作者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我关注了

解决方案

也许为时已晚,但您是否尝试过 sudo systemctl {start,stop,status,restart} sidekiq



遇到相同的问题,但是用<$ c运行命令$ c> sudo 就像一个饰物。谢谢。


I followed Properly setting up Redis and Sidekiq in production on Ubuntu 16.04 to manage sidekiq worker

I created a file like

touch /lib/systemd/system/sidekiq.service

and added following content

[Unit]
Description=sidekiq
After=syslog.target network.target

[Service]
Type=simple
WorkingDirectory=/home/deploy/ezlarm-server/current

ExecStart=/home/deploy/.rbenv/shims/bundle exec "sidekiq -e production"
User=deploy
Group=deploy
UMask=0002

Environment=MALLOC_ARENA_MAX=2

RestartSec=1
Restart=on-failure

StandardOutput=syslog
StandardError=syslog

SyslogIdentifier=sidekiq

[Install]
WantedBy=multi-user.target

Now when I run

systemctl {start,stop,status,restart} sidekiq

it gives following errors

解决方案

Maybe its too late but have you tried sudo systemctl {start,stop,status,restart} sidekiq

Faced the same issue but running the command with sudo worked like a charm. Thanks.

这篇关于数字海洋管理sidekiq工作者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆