install.rst 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Installation
  2. ============
  3. TODO: ...
  4. emqttd is cross-platform, could run on windows, linux, freebsd and mac os x.
  5. emqttd is easy to install and takes about 5 minutes to download and startup.
  6. Install on Linux, Freebsd and Mac OS X
  7. --------------------------------------
  8. Download binary packages from http://emqtt.io/downloads, and then::
  9. unzip emqttd-platform-0.x.y-beta.zip && cd emqttd
  10. Startup with console for debug::
  11. ./bin/emqttd console
  12. All the MQTT Packets(RECV/SENT) will be printed on console.
  13. Startup as daemon::
  14. ./bin/emqttd start
  15. TCP Ports used by emqttd:
  16. +-----------+-----------------------------+
  17. | Port | Description |
  18. +-----------+-----------------------------+
  19. | 1883 | MQTT |
  20. +-----------+-----------------------------+
  21. | 8883 | MQTT(SSL) |
  22. +-----------+-----------------------------+
  23. | 8083 | MQTT Over WebSocket |
  24. +-----------+-----------------------------+
  25. Check the broker status::
  26. ./bin/emqttd_ctl status
  27. Stop the broker::
  28. ./bin/emqttd stop
  29. Install on Windows
  30. ------------------
  31. Download windows package from http://emqtt.io/downloads.
  32. Start console to check if emqttd works::
  33. .\bin\emqttd console
  34. .. NOTE:: execute '.\bin\emqttd', should not cd to 'bin' folder.
  35. A console window will show if the broker started successfully.
  36. Register emqttd as window service::
  37. .\bin\emqttd install
  38. Starte emqttd service::
  39. .\bin\emqttd start
  40. .. NOTE:: The console window should be closed if opened.
  41. Stop emqttd service::
  42. .\bin\emqttd stop
  43. Uninstall emqttd service::
  44. .\bin\emqttd uninstall
  45. Build from Source
  46. -----------------
  47. emqttd requires Erlang R17+ to build from source.
  48. Erlang R17+ and git client should be installed before building emqttd.
  49. ::
  50. git clone https://github.com/emqtt/emqttd.git
  51. cd emqttd
  52. git submodule update --init --recursive
  53. make && make dist
  54. cd rel/emqttd && ./bin/emqttd console