mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 03:06:41 +08:00
16 lines
275 B
Bash
16 lines
275 B
Bash
#!/bin/sh
|
|
|
|
gomake
|
|
./goto -http=:8081 -rpc=true &
|
|
master_pid=$!
|
|
sleep 1
|
|
./goto -master=127.0.0.1:8081 &
|
|
slave_pid=$!
|
|
echo "Running master on :8081, slave on :8080."
|
|
echo "Visit: http://localhost:8080/add"
|
|
echo "Press enter to shut down"
|
|
read
|
|
kill $master_pid
|
|
kill $slave_pid
|
|
|