mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
prome
This commit is contained in:
parent
15b01a07b5
commit
941670a420
@ -20,7 +20,7 @@ scrape_configs:
|
||||
- targets: ['localhost:10006']
|
||||
labels:
|
||||
group: 'cms-api'
|
||||
|
||||
|
||||
|
||||
- targets: ['localhost:20110']
|
||||
labels:
|
||||
|
@ -83,7 +83,12 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
|
||||
for j in ${service_ports}; do
|
||||
#Start the service in the background
|
||||
# ./${service_filename[$i]} -port $j &
|
||||
nohup ./${service_filename[$i]} -port $j -prometheus_port ${prome_ports[$i]} >>../logs/openIM.log 2>&1 &
|
||||
cmd="./${service_filename[$i]} -port $j"
|
||||
if [$j -eq 0 -o $j -eq 1]; then
|
||||
cmd="./${service_filename[$i]} -port $j -prometheus_port ${prome_ports[$i]}"
|
||||
fi
|
||||
echo $cmd
|
||||
nohup $cmd >>../logs/openIM.log 2>&1 &
|
||||
sleep 1
|
||||
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
|
||||
echo -e "${GREEN_PREFIX}${service_filename[$i]} start success,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"
|
||||
|
Loading…
x
Reference in New Issue
Block a user