supervisor命令出现 unix:///tmp/supervisor.sock no such file[通俗易懂]

supervisor命令出现 unix:///tmp/supervisor.sock no such file[通俗易懂]supervisor命令出现 unix:///tmp/supervisor.sock no such file

大家好,又见面了,我是你们的朋友全栈君。

1,打开配置文件supervisord.conf
vim /etc/supervisord.conf
2,修改配置文件
#file=/tmp/supervisor.sock ; (the path to the socket file)
file=/var/run/supervisor.sock   ; (the path to the socket file)

#logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)

#pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)

原因:在supervisor默认配置中,其启动的sock等都会放到tmp目录,而tmp目录会自动清理导致无法使用supervisorctl命令

3,修改权限
sudo chmod 777 /run
sudo chmod 777 /var/log
4,杀死旧进程(kill),重新启动所有的进程

sudo supervisorctl start all

5,执行supervisorctl status时报unix:///tmp/supervisor.sock no such file,

修改如下配置:

serverurl=unix:///tmp/supervisor.sock 改成serverurl=unix:///var/run/supervisor.sock,
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/105848.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • X-Windows桌面

    X-Windows桌面

    2021年10月15日
    38
  • linux iostat 命令详解

    linux iostat 命令详解iostat主要用于监控系统设备的IO负载情况,iostat提供了丰富的参数给我们查询各种维度的io数据,iostat首次运行时显示自系统启动开始的各项统计信息,之后运行iostat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。一、命令相关参数命令使用:iostat[-c][-d][-N][-n][-h][-k|-m][-t][-V][-x][-y][-z][-j{ID|L

    2022年10月6日
    0
  • k8s 开源_openstack源码

    k8s 开源_openstack源码createfunc main() { #随机数 rand.Seed(time.Now().UnixNano()) #创建一个新的命令行对象 command := cmd.NewDefaultKubectlCommand() #日志 logs.InitLogs() defer logs.FlushLogs() #真正执行的命令行 if err := command.Execute(); err != nil { os.Exit(1) }}# NewDefaultKubectl

    2022年8月9日
    1
  • warning: #1300-D: XXX inherits implicit virtual 报警

    warning: #1300-D: XXX inherits implicit virtual 报警在KeilMDK里使用了C++,其中用到了基类和派生类。编译的时候出现了大量warning: #1300-D:XX_function inheritsimplicitvirtual的警告信息。由于对C++不熟,花了好半天时间去找消除警告信息的方法。后面发现是这样的。在基类中,定义了虚成员函数。如下:classDriver{public:virtual…

    2025年6月2日
    0
  • python中plot实现即时数据动态显示方法[通俗易懂]

    python中plot实现即时数据动态显示方法[通俗易懂]在Matlab使用Plot函数实现数据动态显示方法总结中介绍了两种实现即时数据动态显示的方法。考虑到使用python的人群日益增多,再加上本人最近想使用python动态显示即时的数据,网上方法很少,固总结于此。示例代码importmatplotlib.pyplotaspltimportnumpyasnpimporttimefrommathimport*plt.ion()

    2022年6月26日
    34
  • Ubuntu安装主题_炫酷的Ubuntu主题

    Ubuntu安装主题_炫酷的Ubuntu主题1优化工具sudoapt-getupdatesudoapt-getinstallgnome-tweak-tool2主题工具sudoapt-getinstallgnome-shell-extensions3配置start:=>stst:=>开始op1:=>应用程序end:=>est->

    2022年9月24日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号