配置文件启动用户
[centos@us-test-ops-public-gateway-1 supervisord.d]$ sudo vim /etc/supervisord.conf [unix_http_server] file=/var/run/supervisor.sock ; the path to the socket file ;chmod=0700 ; socket file mode (default 0700) chown=lingoace:lingoace ; socket file uid:gid owner ;username=user ; default is no username (open server) ;password=123 ; default is no password (open server)
服务启动用户
[centos@us-test-ops-public-gateway-1 supervisord.d]$ cat ops-public-gateway.conf [program:ops-public-gateway] directory=/data/work/public-gateway/ command=/data/app/jdk-13.0.1//bin/java -Xms4g -Xmx4g -Dspring.profiles.active=test -javaagent:/data/app/pinpoint-agent-2.2.2/pinpoint-bootstrap-2.2.2.jar -Dpinpoint.agentId=est-ops-public-gateway-1 -Dpinpoint.applicationName=ops-public-gateway -jar lingoace-gateway-0.0.1-SNAPSHOT.jar user=lingoace autostart=true autorestart=true startsecs=3 stdout_logfile=/data/logs/supervisor/ops-public-gateway-stdout.log stderr_logfile=/data/logs/supervisor/ops-public-gateway-stderr.log
继续阅读
评论