install.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. =======================
  2. Installation
  3. =======================
  4. .. NOTE::
  5. Linux, FreeBSD Recommended.
  6. ----------------
  7. Download
  8. ----------------
  9. Download binary package from: http://emqtt.io/downloads
  10. +-----------+-----------------------------------+
  11. | Ubuntu | http://emqtt.io/downloads/ubuntu |
  12. +-----------+-----------------------------------+
  13. | CentOS | http://emqtt.io/downloads/centos |
  14. +-----------+-----------------------------------+
  15. | FreeBSD | http://emqtt.io/downloads/freebsd |
  16. +-----------+-----------------------------------+
  17. | Mac OS X | http://emqtt.io/downloads/macosx |
  18. +-----------+-----------------------------------+
  19. | Windows | http://emqtt.io/downloads/windows |
  20. +-----------+-----------------------------------+
  21. --------------------
  22. Installing on Linux
  23. --------------------
  24. CentOS: http://emqtt.io/downloads/centos
  25. .. code:: console
  26. unzip emqttd-centos64-0.16.0-beta-20160216.zip
  27. .. code:: console
  28. cd emqttd && ./bin/emqttd console
  29. .. code:: console
  30. starting emqttd on node 'emqttd@127.0.0.1'
  31. emqttd ctl is starting...[done]
  32. emqttd trace is starting...[done]
  33. emqttd pubsub is starting...[done]
  34. emqttd stats is starting...[done]
  35. emqttd metrics is starting...[done]
  36. emqttd retainer is starting...[done]
  37. emqttd pooler is starting...[done]
  38. emqttd client manager is starting...[done]
  39. emqttd session manager is starting...[done]
  40. emqttd session supervisor is starting...[done]
  41. emqttd broker is starting...[done]
  42. emqttd alarm is starting...[done]
  43. emqttd mod supervisor is starting...[done]
  44. emqttd bridge supervisor is starting...[done]
  45. emqttd access control is starting...[done]
  46. emqttd system monitor is starting...[done]
  47. http listen on 0.0.0.0:18083 with 4 acceptors.
  48. mqtt listen on 0.0.0.0:1883 with 16 acceptors.
  49. mqtts listen on 0.0.0.0:8883 with 4 acceptors.
  50. http listen on 0.0.0.0:8083 with 4 acceptors.
  51. Erlang MQTT Broker 0.16.0 is running now
  52. Eshell V6.4 (abort with ^G)
  53. (emqttd@127.0.0.1)1>
  54. .. code:: console
  55. ./bin/emqttd start
  56. .. code:: console
  57. ./bin/emqttd_ctl status
  58. .. code:: console
  59. $ ./bin/emqttd_ctl status
  60. Node 'emqttd@127.0.0.1' is started
  61. emqttd 0.16.0 is running
  62. http://localhost:8083/status
  63. ./bin/emqttd stop
  64. ---------------------
  65. Installing on FreeBSD
  66. ---------------------
  67. FreeBSD: http://emqtt.io/downloads/freebsd
  68. -----------------------
  69. Installing on Mac
  70. -----------------------
  71. .. code:: erlang
  72. -----------------------
  73. Installing on Windows
  74. -----------------------
  75. -----------------------
  76. Installing From Source
  77. -----------------------
  78. .. code:: console
  79. git clone https://github.com/emqtt/emqttd.git
  80. cd emqttd
  81. make && make dist
  82. Binary Package::
  83. rel/emqttd
  84. -------------------
  85. /etc/init.d/emqttd
  86. -------------------