root@supervisor:~# mkdir /opt/supervisor
root@supervisor:~# cd /opt/supervisor/
安装meld
root@supervisor:/opt/supervisor# wget https://files.pythonhosted.org/packages/64/34/7a43890031d05b2d3ed269ea6fa256016a8675f2420255caf22bf33bff98/meld-1.0.2.tar.gz
root@supervisor:/opt/supervisor# tar zxf meld-1.0.2.tar.gz
root@supervisor:/opt/supervisor# cd meld-1.0.2/
root@supervisor:/opt/supervisor/meld-1.0.2# python3 setup.py install
root@supervisor:/opt/supervisor/meld-1.0.2# cd ..
注意:
【可能报错】:ImportError: No module named setuptools
【解决办法】:没有setuptools的模块,说明python缺少这个模块,那我们只要安装这个模块即可解决此问题
[root@supervisor supervisor]# wget https://files.pythonhosted.org/packages/4b/d9/d0cf66484b7e28a9c42db7e3929caed46f8b80478cd8c9bd38b7be059150/setuptools-69.0.2.tar.gz
root@supervisor:/opt/supervisor# tar zxf setuptools-69.0.2.tar.gz
root@supervisor:/opt/supervisor# cd setuptools-69.0.2
root@supervisor:/opt/supervisor/setuptools-69.0.2# python3 setup.py build
root@supervisor:/opt/supervisor/setuptools-69.0.2# python3 setup.py install
root@supervisor:/opt/supervisor/setuptools-69.0.2# cd ..
安装supervisor
[root@localhost supervisor]# wget https://files.pythonhosted.org/packages/ce/37/517989b05849dd6eaa76c148f24517544704895830a50289cbbf53c7efb9/supervisor-4.2.5.tar.gz
root@supervisor:/opt/supervisor# tar zxf supervisor-4.2.5.tar.gz
root@supervisor:/opt/supervisor# cd supervisor-4.2.5
root@supervisor:/opt/supervisor/supervisor-4.2.5# python3 setup.py install
验证安装是否成功
root@supervisor:/opt/supervisor/supervisor-4.2.5# cd
root@supervisor:~# supervisorctl --help
supervisorctl -- control applications run by supervisord from the cmd line.
Usage: /usr/local/bin/supervisorctl [options][action [arguments]]
Options:
-c/--configuration FILENAME -- configuration file path (searches if not given)
-h/--help -- print usage message and exit
-i/--interactive -- start an interactive shell after executing commands
-s/--serverurl URL -- URL on which supervisord server is listening
(default "http://localhost:9001").
-u/--username USERNAME -- username to use for authentication with server
-p/--password PASSWORD -- password to use for authentication with server
-r/--history-file -- keep a readline history(if readline is available)
action [arguments] -- see below
Actions are commands like "tail" or "stop". If -i is specified or no action is
specified on the command line, a "shell" interpreting actions typed
interactively is started. Use the action "help" to find out about available
actions.