一,环境
1. lua-5.4.1安装
curl -R -O http://www.lua.org/ftp/lua-5.4.1.tar.gz
tar zxf lua-5.4.1.tar.gz cd lua-5.4.1
make all test
make install
2. luarocks-3.3.1安装(lua的包管理器)
wget https://luarocks.org/releases/luarocks-3.3.1.tar.gz
tar zxpf luarocks-3.3.1.tar.gz
cd luarocks-3.3.1
./configure && make && sudo make install
3.引入包
luarocks install xx
进入https://luarocks.org/网址搜索需要的包
下载.rockspec包,使用命令luarocks make xx 安装
下载.rock包,使用命令luarocks build xx 安装
5.安装mosquitto
wget https://codeload.github.com/eclipse/mosquitto/zip/master
cd mosquitto &&make
依赖:
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install openssl
sudo apt-get install uuid-dev
sudo apt-get install docbook-xsl