fanux / lhttp

go websocket, a better way to buid your IM server
MIT License
691 stars 141 forks source link

run error! #4

Closed hongxiangbin closed 7 years ago

hongxiangbin commented 7 years ago

hello,Could you describe this command in detail?

“We need run gnatsd first: cd bin ./gnatsd & ./lhttpd ......”

gnatsd & lhttpd is not a command

fanux commented 7 years ago

There are two commands, first run ./gnatsd & will run a gnatsd daemon, then run ./lhttpd. We use gnatsd as a message queue, then clients can use subscribe/publish headers. If you run bin on others platform not linux, you need to rebuild source code, go get github.com/nats-io/gnatsd, cd websocketServer go build -o lhttpd. Using docker also a good choice.

hongxiangbin commented 7 years ago

I konw, beacuse I's running in Windows before But,it still can't run!

fanux commented 7 years ago

Did you rebuild the project?

go get github.com/nats-io/gnatsd
go get github.com/fanux/lhttp
cd  websocketServer
go build -o lhttpd
gnatsd &
./lhttpd
hongxiangbin commented 7 years ago

Thanks, it has run successfully on Linux