vim /etc/rc.local
export PATH=$PATH:/work/apps/node-v0.12.7-linux-x64/bin:/work/apps/ledisdb/bin
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/work/apps/go
. /work/test/run_echo_server.sh &>/dev/null &
在sh 檔案中,最後一行新增:
exit 0
vim /etc/rc.local
export PATH=$PATH:/work/apps/node-v0.12.7-linux-x64/bin:/work/apps/ledisdb/bin
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/work/apps/go
. /work/test/run_echo_server.sh &>/dev/null &
在sh 檔案中,最後一行新增:
exit 0