In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to configure supervisor in ubuntu, the content is very detailed, interested friends can refer to, hope to be helpful to you.
1, install python,supervisor
# apt-get install python supervisor
2, configure supervisor
# cat / etc/supervisor/conf.d/mini_ breakpad.confs [program: minibreakpad] / / process name directory = / root/error/mini-breakpad-server / / the startup directory of the program command = node lib/app.js / / the startup command autostart = true / / also automatically starts when supervisord starts startsecs = 5 / / if you don't exit after 5 seconds of startup, you are deemed to have started normally autorestart = true / / after the program exited abnormally Automatic restart startretries = 5 / failed automatic retries 5 user = root / / with which user to start redirect_stderr = true / / redirect stderr to the stdout default false If it is false, you do not need to set the following log configuration stdout_logfile_maxbytes = 20MB / / stdout log file size. By default, 50MB stdout_logfile_backups = 20 / / number of stdout log file backups / / stdout log file. It should be noted that it cannot be started normally when the specified directory does not exist, so you need to create a directory manually (supervisord will automatically create log files) stdout_logfile = / root/error/mini-breakpad-server/logs/stdout.log
3. Restart supervisor to check the status
# / etc/init.d/supervisor restart # supervisorctl status minibreakpad RUNNING pid 17655, uptime 2:57:07
Note: if the program running in the background, there are daemons, do not use supervisor, not even with nohup. The following error will be reported
# supervisorctl statusminibreakpad FATAL Exited too quickly (process log may have details) this is the end of how to configure supervisor in ubuntu. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.