<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 下載luarocks 現在需要用openresty實現一個文件夾遍歷的功能,需要LuaFileSystem(簡稱lfs)。 第一步:將luarocks整合進openresty 下載地址:[https://luarocks.github.io/luarocks/releases/](https://luarocks.github.io/luarocks/releases/) 下載最新版的源碼包即可。 將下載的源碼包解壓,進行以下配置: ``` $ 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 --prefix=/usr/local/openresty/luajit \ --with-lua=/usr/local/openresty/luajit/ \ --lua-suffix=jit \ --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 make && sudo make install ``` >注意:這些參數中的路徑要與你的openresty安裝路徑一致,包括最后的luajit-2.1的版本。 make install 會將編譯好的 luarocks安裝到/usr/local/openresty相關目錄。 /usr/local/openresty/luajit/share/lua/5.1/luarocks 在/usr/local/openresty/luajit/bin 目錄中,會看到luarocks的可執行程序,接下來的一步我們需要運行這個luarocks來安裝LuaFileSystem(簡稱lfs) ## 安裝lfs 給openresty安裝lfs 進入到 /usr/local/openresty/luajit/bin 目錄中 ``` $ cd /usr/local/openresty/luajit/bin $ ./luarocks install luafilesystem ``` 在 /usr/local/openresty/luajit/lib/lua/5.1 目錄中,會看到編譯好的lfs.so,不用再拷貝什么的,openresty就直接可以用了。 只需要在lua文件中引用就可可以使用了 ``` local lfs = require("lfs") ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看