idea插件Alibaba Cloud结合supervisorctl自动化部署

1.安装supervisorctl配置supervisord.conf

vi /etc/supervisord.conf
#图形化界面管理服务
[inet_http_server] ; inet (TCP) server disabled by default port=*:9001 ; (ip_address:port specifier, *:port for all iface) username=admin ; (default is no username (open server)) password=admin ; (default is no password (open server))

2.配置服务

################守护服务#########################
[program:redis]
directory=/usr/local/bin
command=/usr/local/bin/redis-server /etc/redis.conf
priority=1
numprocs=1
process_name=redis
autostart=true
autorestart=true
startretries=5

[program:tomcat]
directory=/usr/local/apache-tomcat-8.5.60
command=/usr/local/apache-tomcat-8.5.60/bin/catalina.sh run
environment=JAVA_HOME="/usr/local/jdk1.8.0_131/",JAVA_BIN="/usr/local/jdk1.8.0_131/bin"
stdout_logfile=/usr/local/apache-tomcat-8.5.60/logs/catalina.out
priority=2
numprocs=1
process_name=tomcat
autostart=true
autorestart=true
startretries=5

[program:nginx]
directory=/usr/local/nginx/sbin
command=/usr/local/nginx/sbin/nginx -g 'daemon off;'
priority=3
numprocs=1
process_name=nginx
autostart=true
autorestart=true
startretries=5

[program:association-api]
directory=/home/association-api
command=/usr/local/jdk1.8.0_131/bin/java -Xmx256m -Xms256m -jar association-api-v1.0.0.jar --spring.config.location=/home/association-api/application-pro.yml
process_name=association-api
priority=4
numprocs=1
autostart=true
autorestart=true
startretries=5

[program:trace-api]
directory=/home/trace-api
command=/usr/local/jdk1.8.0_131/bin/java -Xmx256m -Xms256m -jar trace-api-v1.0.0.jar --spring.config.location=/home/trace-api/application-pro.yml
process_name=trace-api
priority=5
numprocs=1
autostart=true
autorestart=true
startretries=5

4.idea设置自动部署

idea插件Alibaba Cloud结合supervisorctl自动化部署

 

 

 

 

 idea插件Alibaba Cloud结合supervisorctl自动化部署

 

 5.点击run自动发布

6.图形化界面自动启动

idea插件Alibaba Cloud结合supervisorctl自动化部署

 

上一篇:爱颂派对云服务器安装纪实(四)oneinstack方式安装


下一篇:supervisor 管理uwsgi 进程