In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
1. Supervisor installation file, the installation command is: sh supervisor_install.sh
#! / bin/bashyum-y install python-setuptoolseasy_install 'supervisor==3.3.4'echo "alias' supervisorctl'='supervisorctl-c / opt/superctl/etc/supervisor.conf'" > > ~ / .bashrcmkdir-p / opt/superctl/bin/mkdir-p / opt/superctl/log/mkdir-p / opt/superctl/etc/chmod-R 755 / opt/superctl/bin/chmod 755 / opt/superctl/supervisor.shcd / opt/superctl/etc/cat > supervisor.conf test.supervisor.temple & 2 RETVAL=2} start () {if [- e / opt/superctl/etc/supervisor.conf] Then if [`ps-ef | grep "/ opt/superctl/etc/supervisor.conf" | grep-v grep | wc-l`-ne 0] Then sleep 1 echo "/ opt/superctl/etc/supervisor.conf process is running" ps-ef | grep "/ opt/superctl/etc/supervisor.conf" | grep-v grep else sleep 1 / bin/supervisord-c / opt/superctl/etc/supervisor.conf Fi fi} stop () {if [`ps-ef | grep "/ opt/superctl/etc/supervisor.conf" | grep-v grep | wc-l`-eq 1] Then supervisorctl stop all sleep 4 / bin/supervisorctl shutdownfi} status () {/ bin/supervisorctl status} restart () {stop sleep 3 start} case "$1" in stop) stop;; status) status;; restart) restart;; start) start;; *) usage;; esacexit $RETVA
3. Start the command:
Sh supervisor.sh start | stop | restart
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.