解决 Supervisor Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.
unlink /tmp/supervisor.sock
supervisor.conf 文件添加内容
[program:cloud_demo]
command = java -Xms1g -Xmx1g -jar clothes-api-1.0.0.jar -Dspring.config.location=./application.yml --server.port=9090 &
directory = /usr/local/
autostart =true
autorestart = true
stopasgroup = true
killasgroup = true
environment= JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.342.b07-1.el7_9.x86_64"