nats批量publish最后一条疑似丢失
golang位移操作的一个小坑

go版本的supervisord

妙音 posted @ 2021年11月14日 13:27 in golang with tags supervisord go , 650 阅读
 

描述

 
python版本的supervisrod, 在linux、windows系统中离线安装都不怎么方便.  是否有go版本的呢?
 

github地址

 
[https://github.com/ochinchina/supervisord/](https://github.com/ochinchina/supervisord/)
 

踩坑记录

 
* 编译32版本, 有些报错, 需要修改源码
 
* 在ui界面快速点击start/stop, 进程可能会启动多个。需要加锁处理处理.
 
## 用法
 
* 配置文件查找顺序
 
$CWD/supervisord.conf
$CWD/etc/supervisord.conf
/etc/supervisord.conf
/etc/supervisor/supervisord.conf (since Supervisor 3.3.0)
../etc/supervisord.conf (Relative to the executable)
../supervisord.conf (Relative to the executable)
 
 
* 最简单配置supervisord.conf
 
[program:test]
command = /your/program args
 
 
* 常用配置
 
[inet_http_server]          ;http接口
port=:9002
;username=xxxx
;password=xxxx

[supervisorctl]             ;ui界面
serverurl=http://127.0.0.1:9002

[supervisord]               ;日志
logfile=%(here)s/../log/supervisord.log
logfileMaxbytes=50MB        ;文件大小
logfileBackups=10           ;10个文件
loglevel=info               ;日志级别

[program:middleware1]       ;进程
command = %(here)s/../middleware1.exe   ;here指的是supervisord.conf的路径,而不是supervisord.exe的路径
autorestart = true
numprocs=1                  ;进程数量

[program:programname1]
command = %(here)s/../programname1.exe
autorestart = true
numprocs=1
depends_on=middleware1      ;依赖进程


[program:programname2]
command = %(here)s/../programname2.exe
autorestart = true
numprocs=1
depends_on=middleware1
 
Avatar_small
YOLO 说:
2021年12月02日 19:50

slotok Just pick up the phone, whether the system

Avatar_small
Digital_Zone 说:
2021年12月20日 01:51

It is truly a well-researched content and excellent wording. I got so engaged in this material that I couldn’t wait reading. I am impressed with your work and skill. Thanks. Warmtepomp Bilzen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:00

Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. Ramen en deuren

Avatar_small
Digital_Zone 说:
2021年12月20日 02:03

Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! Warmtepomp Alken

Avatar_small
Digital_Zone 说:
2021年12月20日 02:07

Your content is nothing short of brilliant in many ways. I think this is engaging and eye-opening material. Thank you so much for caring about your content and your readers. Zonnepanelen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:11

Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! Warmtepomp Borgloon

Avatar_small
Digital_Zone 说:
2021年12月20日 02:15

Believe it or not, it is the type of information I’ve long been trying to find. It matches to my requirements a lot. Thank you for writing this information. Ramen en deuren kopen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:18

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. Longi Solar zonnepanelen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:21

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Ramen en deuren plaatsen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:24

I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. Warmtepompen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:28

Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! Ramen deuren

Avatar_small
Digital_Zone 说:
2021年12月20日 02:31

Please let me know if you’re looking for a article writer for your site. You have some really great posts and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thank you! Warmtepomp Diepenbeek

Avatar_small
Digital_Zone 说:
2021年12月20日 02:36

In the world of www, there are countless blogs. But believe me, this blog has all the perfection that makes it unique in all. I will be back again and again. Rec zonnepanelen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:39

I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. Ramen en deuren

Avatar_small
Digital_Zone 说:
2021年12月20日 02:42

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. Qcells zonnepanelen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:45

Wow! This could be one of the most useful blogs we have ever come across on thesubject. Actually excellent info! I’m also an expert in this topic so I can understand your effort. Warmtepomp Genk

Avatar_small
Digital_Zone 说:
2021年12月20日 02:49

Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time. Thank you and good luck. SolarWatt zonnepanelen

Avatar_small
Digital_Zone 说:
2021年12月20日 02:53

That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more. Ramen deuren

Avatar_small
Digital_Zone 说:
2021年12月20日 02:56

Thanks for an interesting blog. What else may I get that sort of info written in such a perfect approach? I have an undertaking that I am just now operating on, and I have been on the lookout for such info. Warmtepomp Hasselt

Avatar_small
Digital_Zone 说:
2021年12月20日 03:00

It’s appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I wish to suggest you few interesting things or advice. Perhaps you could write next articles referring to this article. I desire to read even more things about it! Zonnepanelen Aarschot

Avatar_small
Digital_Zone 说:
2021年12月20日 03:03

Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC. Ramen en deuren kopen

Avatar_small
Digital_Zone 说:
2021年12月20日 03:06

An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers. Warmtepomp Hoeselt

Avatar_small
Digital_Zone 说:
2021年12月20日 03:09

What a sensational blog! This blog is too much amazing in all aspects. Especially, it looks awesome and the content available on it is utmost qualitative. Zonnepanelen Affligem

Avatar_small
Digital_Zone 说:
2021年12月20日 03:12

I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. Aluminium ramen

Avatar_small
Digital_Zone 说:
2021年12月20日 03:15

We have sell some products of different custom boxes.it is very useful and very low price please visits this site thanks and please share this post with your friends. Warmtepomp Kortessem

Avatar_small
Digital_Zone 说:
2021年12月20日 03:18

I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much. Zonnepanelen Antwerpen

Avatar_small
AAA 说:
2021年12月23日 16:55

Hi there, just became aware of your blog through Google, and found that it’s truly informative. I am gonna watch out for brussels. I¡¦ll appreciate if you continue this in future. A lot of people will be benefited from your writing. Cheers! 안전놀이터

Avatar_small
building duo west 说:
2022年1月07日 21:03

Admiring the time and effort you put into your blog and detailed information you offer!..

Avatar_small
Click Here 说:
2022年1月08日 14:48

I am jovial you take pride in what you write. It makes you stand way out from many other writers that can not push high-quality content like you. <a href="cse.google.dk/url?sa=i&url=http%3A%2F%2Fdailymagazinepure.com%2F">Click Here</a>
<a href="images.google.com.ar/url?q=https%3A%2F%2Fdailymagazinepure.com%2F">Click Here</a>
<a href="images.google.com.ar/url?sa=t&url=http%3A%2F%2Fdailymagazinepure.com">Click Here</a>
<a href="championsleage.review/wiki/What_Does_Sbobet_Mean">Click Here</a>
<a href="cse.google.co.nz/url?sa=i&url=http%3A%2F%2Fdailymagazinepure.com%2F">Click Here</a>

Avatar_small
joker gaming 说:
2022年1月14日 03:11

Thanks for the blog filled with so many information. Stopping by your blog helped me to get what I was looking for. Now my task has become as easy as ABC.

Avatar_small
Alexander Malshakov 说:
2022年2月04日 00:06

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.

Avatar_small
AAA 说:
2022年2月15日 19:28

I wanted to many thanks with this great read!! I definitely enjoying every little bit of it I perhaps you have bookmarked to see new stuff you post. 안전놀이터

Avatar_small
AAA 说:
2022年3月05日 21:20

Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks North American Bancard ISO

Avatar_small
AAA 说:
2022年3月21日 04:50 This article is an appealing wealth of informative data that is interesting and well-written. I commend your hard work on this and thank you for this information. You’ve got what it takes to get attention. สล็อตpgใหม่ล่าสุด
Avatar_small
AAA 说:
2022年3月22日 00:56

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. Въздухопречистватели

Avatar_small
AAA 说:
2022年3月27日 20:25

There is noticeably a bundle to know about this. I assume you made sure nice points in options also. Cognitive Behavioral Therapy

Avatar_small
AAA 说:
2022年3月28日 16:50

I’m going to read this. I’ll be sure to come back. thanks for sharing. and also This article gives the light in which we can observe the reality. this is very nice one and gives indepth information. thanks for this nice article... truck wire connectors

Avatar_small
AAA 说:
2022年4月02日 17:15

Everything has its value. Thanks for sharing this informative information with us. GOOD works! yuxuda alma gormek

Avatar_small
AAA 说:
2022年4月02日 19:22

It is the kind of information I have been trying to find. Thank you for writing this information. It has proved utmost beneficial for me. tantangan sahabat

Avatar_small
AAA 说:
2022年4月06日 03:02

I like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed... usd stablecoins

 

 

====================================

 

Thank you for taking the time to publish this information very useful! euro backed stablecoin

 

 

==========================================

 

Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! gbp stablecoin

 

 

=======================================

 

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! chf stablecoin

Avatar_small
AAA 说:
2022年4月11日 20:01

I have seen some great stuff here. Worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website. Your work is truly appreciated around the clock and the globe. How to Start a Credit Card Processing Business

Avatar_small
AAA 说:
2022年4月13日 03:52

This is my very first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the a lot of comments on your articles, I guess I am not the only one having most of the enjoyment here continue the good work How to Become a Credit Card Processor

Avatar_small
AAA 说:
2022年4月19日 17:59

Appreciate it intended for giving new messages the matter, When i count on understand far more. North American American Bancard Sales Partner

Avatar_small
Dave 说:
2022年5月17日 00:39

You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. Satta king

Avatar_small
Dave 说:
2022年5月20日 14:06

You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. Free Netflix 100%

Avatar_small
Satta king fast resu 说:
2022年5月23日 23:56

"There’re various types of < a href=""https://satta-king-786.info/"">Satta king fast result</a> Satta King 786 Games and every Satta company open different results at a different time of the day. These games are being played all over the world and the Satta result is the outcome that comes in the form of 2 digit numbers and opens it on a fixed time each day. Satta result is the Satta number that decides the winner of the Satta King Fast. You can all the Satta king result; their Satta result is well-arranged on each page as it’s a source of visitors to any website. You can see current and old Satta results, which can help you to bet on the next Satta game.Over a million people are playing Satta lottey game online across India. The money that players receive after winning is the most interesting aspect of this game. The winners are known as Satta King and the results are posted daily on our official website. Calculated risks can earn you big bucks with Satta Result. It is not necessary to invest a huge amount; you can also play with small money. The Satta game is quite easy to learn and play. Your win depends solely on your luck when you select the number randomly. Numbers must be chosen from 0 to 99. The game is risky but interesting. Gali Satta result, Diswar Satta Result, Faridabad result and Ghaziabad result are the 4 most searched keywords in Google. Several times the result gets leaked in the market which is known as the Satta leak number is,.which can make you rich. Every Satta king 786 result was announced on time, as Disawar satta result announced at 5:10am, Gali Satta Result announced at 11:30 pm, Ghaziabad result was announced at 8:30 pm, And Faridabad result announce at 6:00 pm.
"

Avatar_small
AAA 说:
2022年5月27日 19:45

I am curious to find out what blog platform you are using? I’m having some small security problems with my latest website and I would like to find something more secure. Do you have any solutions? 토토사이트

Avatar_small
AAA 说:
2022年6月04日 21:55

It’s truly a great and helpful piece of info. I’m happy that you just shared this useful info with us. Please stay us informed like this. Thank you for sharing. 攝影器材

Avatar_small
Ramas Cargo 说:
2022年6月11日 20:20

Thanks for writing the Nice and Informative post for us. This really contains a lot of useful and related information about This Topic. 

 

Dubai to Pakistan Cargo

Avatar_small
AAA 说:
2022年6月13日 21:23

I dugg some of you post as I cerebrated they were very beneficial handy 電腦回收價格

Avatar_small
pinkysharma 说:
2022年6月18日 18:17

Cool post. It's an entirely important post. Keep it up
[url=https://www.sunnyescorts.in/]Escorts Service in Bangalore[/url]
[url=https://www.naughtymodel.co.in/]High Profile Bangalore Escorts[/url]
[url=http://www.bangalore-escort.in/]VIP Bangalore Escorts[/url]
[url=http://www.anshikabangaloreescorts.in/]VIP Bangalore Escorts[/url]

Avatar_small
DSA 说:
2022年6月24日 12:41

You re in point of fact a just right webmaster. The website loading speed is amazing. It kind of feels that you're doing any distinctive trick. Moreover, The contents are masterpiece. you have done a fantastic activity on this subject! ff reward

Avatar_small
DSA 说:
2022年6月27日 00:49

I will really appreciate the writer's choice for choosing this excellent article appropriate to my matter.Here is deep description about the article matter which helped me more. financing commodity

Avatar_small
DSA 说:
2022年6月27日 01:00

Joker123 provides hundreds of online slot games that are strictly regulated by Joker Gaming to provide the best gaming experience for you. https://linuxppc64.org/

Avatar_small
DSA 说:
2022年6月30日 12:55
 

 

Avatar_small
dark web links 说:
2022年7月03日 19:48

You should never share your VPS site with anyone because that information goes into the hands of someone that is not supposed to see it.

Avatar_small
dark web links 说:
2022年7月03日 19:50

You should also keep in mind that there are other programs that you can run on the server that will block the web sites that the web browser tries to visit.

Avatar_small
dark web links 说:
2022年7月03日 20:08

You should also keep in mind that you should change your passwords as often as you can. It may take you some time but you can find a lot of help online and talk with an expert in the field.

Avatar_small
dark web 说:
2022年7月03日 20:24

If you still wonder what to do if your son is on the dark web links, you should always keep in mind that the information that you think is not private can easily be accessed by others through illegal means.

Avatar_small
dark web sites 说:
2022年7月03日 20:41

Make sure that you never give out your real information because this will make it impossible for you to get in touch with anyone in the future. This will mean that you will be able to stop any possible hacking attempts that may come to your personal information.

Avatar_small
deep web 说:
2022年7月03日 20:55

Anyone who has ever wanted to look up information on a product, a person, or something in order to make an informed decision about it knows how difficult it can be when you want to get information that is quick and easy.

Avatar_small
dark web/deep web/d 说:
2022年8月06日 22:58

These websites are characterized by poor security practices, including user generated content and a lot of it being spam.  dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月06日 23:33

When it comes to the Dark Web though, there is nothing illegal or unethical about any of the links that you discover. There are plenty of people linking to your site via these dark web links; they are simply doing so in a different fashion.  deep web

Avatar_small
dark web/deep web/d 说:
2022年8月06日 23:51

Finally, make sure you do not link to any CVS or FTP site until you have done the appropriate research for doing so. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月07日 00:10

Therefore, if you visit any web site that has a lot of links pointing to it, then you are at high risk. dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月07日 00:28

Most people have become accustomed to clicking on links that appear to be legitimate and then being redirected to a site that is phony. If you get a warning message saying that your download is fraudulent, then don't proceed and contact the site operator. dark web

Avatar_small
dark web/deep web/d 说:
2022年8月07日 00:57

If you haven't heard already, ClickBank is a digital marketplace where you can find all sorts of items such as e-books, software, electronics, cell phones, music, video games, and other things that people sell or simply want to sell. work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月07日 01:19

One way to do this is to write articles about the products that you're promoting. The information you provide needs to be factual and truthful. affiliate marketing success


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter