当我尝试通过supervisord运行Zookeeper时,我得到(exit status 127; not expected) ,并且我回来的错误没有帮助。 像普通用户那样运行就好了: [ec2-user@ip-10-1-90-214 zookeeper-3.4.6]$ sudo bin/zkServer.sh start JMX enabled by default Using config: /home/ec2-user/zookeeper-3.4.6/bin/../conf/zoo.cfg Starting zookeeper … STARTED 但是,当通过supervisord运行它(与-n,所以我可以看到输出): [ec2-user@ip-10-1-90-214 zookeeper-3.4.6]$ supervisord -n 2015-04-20 21:51:51,834 INFO RPC interface 'supervisor' initialized 2015-04-20 21:51:51,834 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2015-04-20 21:51:51,834 INFO supervisord started with pid 24004 2015-04-20 […]
你如何configuration一个更新版本的主pipe在Ubuntu启动系统启动? 一些发行版在它们的版本库中只是滞后。 当我使用简单的安装(在主pipe网站上默认推荐)我只能得到二进制安装,但它不是守护进程。 http://supervisord.org/installing.html 有一个以前的老post提到创build一个新贵或一个systemd脚本,有多个人尝试不同的事情,让它的工作,但没有明确的答案。 如何自动启动Linux上的supervisord(Ubuntu)
我试图开始收集docker里面,我已经尝试了一切从运行命令开始在dockerfile collectd使用脚本来运行service collectd start使用supervisord,但仍然不工作 我的supervisord.conf文件是 [unix_http_server] file=/tmp/supervisor.sock ; (the path to the socket file) [supervisord] logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log) logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB) logfile_backups=10 ; (num of main logfile rotation backups;default 10) loglevel=info ; (log level;default info; others: debug,warn,trace) pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid) nodaemon=false ; (start in […]
我正在运行版本3.3.1 。 除了我的/etc/supervisor/supervisord.conf文件: [program:node] directory=/srv/www command=npm run demo autostart=true autorestart=true 除了脚本下的我的package.json文件之外: "demo": "npm run prod", "prod": "NODE_ENV=production NODE_PATH=\"$(pwd)\" node src/index.js" 我尝试通过supervisorctlclosures节点程序,但是它仍然存在。 root@dev-demo-karl:/srv/www# ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.2 0.8 50280 18404 ? Ss 08:43 0:00 /usr/bin/python /usr/bin/supervisord root 8 0.2 2.4 1003412 49456 ? Sl […]
我需要将来自/etc/environment多个环境variables代理到由supervisorpipe理的进程。 supervisor 3.0r1-1下面的configuration为我工作,但supervisor 3.2.0-2报告错误: environment=FOO=$FOO,BAR=$BAR,BAZ=$BAZ 错误:键/值对的意外结束值… 有些答案build议引用值,但如果我这样做,variables不会扩大到实际值。 我究竟做错了什么? 如何解决它?
最近我在研究豆杆的时候碰到了主pipe。 有人可以向我解释为什么我可以使用这样的stream程pipe理服务,而不是简单的旧cron作业?
我使用Supervisor和uWSGI Emperor模式。 当我设置limit-as 512 (MB)时,工人立即死亡(重生,死亡,重生,死亡,每3/4秒): [uwsgi] workers = 4 threads = 40 limit-as = 512 harakiri = 20 max-requests = 1600 … non-performance/memory/processor-related settings ommitted 但是,如果我改变了limit-as : [uwsgi] workers = 4 threads = 40 limit-as = 1024 harakiri = 20 max-requests = 1600 … non-performance/memory/processor-related settings ommitted 并重新启动uwsgi, 问题立即消失 。 为了摆在这一点,我已经修改了设置回512,再次重新启动, 问题立即回来 。 注意:我的应用程序是一个简单的Django应用程序,在启动时没有额外的Python设置。
我试图从这里下载运行Supervisor init脚本: https : //raw.github.com/Supervisor/initscripts/master/debian-norrgard 阅读源代码,它应该打印出一些输出到标准输出,但是当我运行它,它不会打印任何东西,也不会启动supervisord 。 我注意到与/etc/init.d/mysql相同的行为。 Nginx的/etc/init.d/nginx工作就好了。 我怎样才能debugging呢? 运行Debian: 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
我想设置一个Vagrantconfiguration来创build和启动一个Ubuntu guest虚拟机,它将在Vagrant up后在虚拟机内启动一个supervisord服务。 我想为此在Windows,Mac和Linux主机上工作。 我有一个supervisord.conf文件,我在备份期间复制到虚拟机(通过先复制到用户空间,然后复制到/etc/supervisor/如在此答案中 )。 这个configuration文件包含这些线路来为端口9001上的GUI接口提供服务(这个端口被转发给主机): [inet_http_server] port=9001 但是,如果我在service supervisor start的Vagrantconfiguration脚本中发出命令,则此configuration没有正确拾取。 我可以SSH进入虚拟机,并validation监控程序服务正在运行,但在端口9001上不可用GUI。如果我使用ssh重新启动服务,则重新启动后GUI将变为可用。 重新启动服务导致它拿起我的configuration让我觉得configuration是不可用的,当服务第一次启动。 这个答案似乎解决了类似的问题。 所以我也尝试复制一个文件到/etc/init/supervisor.conf : # start supervisord on vagrant mounted start on vagrant-mounted exec service supervisor restart 这将导致新贵重新启动服务,当它收到vagrant-mounted事件。 但是,即使这样,主pipe似乎也没有正确启动。 我通过发布sudo initctl emit vagrant-mountedtesting这个新贵脚本,并且观察到supervisor服务重新启动,并且GUI在9001上变得可用。 这让我觉得这个vagrant-mounted事件可能发生在configuration脚本运行之前。 有谁知道是否有其他事件可以预测我的新贵脚本? stream浪者配备完成时发出的东西? 另外,有没有更好的或规范的方式发起一个stream浪VM的服务? 这一切都感觉就像我已经放下了一个兔子洞,错过了一些非常明显的东西。
我使用Vagrant设置了一个Ubuntu虚拟机。 在我的Vagrantfile中,我configuration了一个私有networking,如下例所示: config.vm.network "private_network", ip: "192.168.33.10 在/etc/supervisor/supervisord.conf ,我有以下/etc/supervisor/supervisord.conf行: [inet_http_server] port=127.0.0.1:9001 当我运行python -m SimpleHTTPServer 9002 ,可以通过我的浏览器从主机使用192.168.33.10:9002访问客机。 但是,当我尝试访问192.168.33.10:9001 ,我没有得到任何回应。 当我尝试在该端口上打开一个python web服务器时,它说这个地址正在被使用。 因此,我猜测主pipe的Web界面正在运行,但不知何故无法访问。 任何想法表示赞赏!