mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
nohup start
This commit is contained in:
parent
7a11281012
commit
0ac4dbfa34
@ -50,8 +50,8 @@ for ((i = 0; i < ${#service_filename[*]}; i++)); do
|
|||||||
for j in ${ports_array}; do
|
for j in ${ports_array}; do
|
||||||
echo -e "${SKY_BLUE_PREFIX}${service_filename[$i]} Service is starting,port number:$j $COLOR_SUFFIX"
|
echo -e "${SKY_BLUE_PREFIX}${service_filename[$i]} Service is starting,port number:$j $COLOR_SUFFIX"
|
||||||
#Start the service in the background
|
#Start the service in the background
|
||||||
./${service_filename[$i]} -port $j &
|
# ./${service_filename[$i]} -port $j &
|
||||||
# nohup ./${service_filename[$i]} -port $j >/dev/null 2>&1 &
|
nohup ./${service_filename[$i]} -port $j >../logs/openIM.log 2>&1 &
|
||||||
sleep 1
|
sleep 1
|
||||||
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
|
pid="netstat -ntlp|grep $j |awk '{printf \$7}'|cut -d/ -f1"
|
||||||
echo -e "${RED_PREFIX}${service_filename[$i]} Service is started,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"
|
echo -e "${RED_PREFIX}${service_filename[$i]} Service is started,port number:$j pid:$(eval $pid)$COLOR_SUFFIX"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user