diff --git a/script/demo_svr_start.sh b/script/demo_svr_start.sh index 57046b950..7b019fd50 100644 --- a/script/demo_svr_start.sh +++ b/script/demo_svr_start.sh @@ -23,8 +23,8 @@ fi sleep 1 cd ${demo_server_source_root} -for ((i = 0; i < ${#rpc_ports[@]}; i++)); do - nohup ./${demo_server_name} -port ${rpc_ports[$i]} >>../logs/openIM.log 2>&1 & +for ((i = 0; i < ${#api_ports[@]}; i++)); do + nohup ./${demo_server_name} -port ${api_ports[$i]} >>../logs/openIM.log 2>&1 & done sleep 3