Advertisement
thanh_thu

install luarocks_kong

Jul 25th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. $ wget https://luarocks.org/releases/luarocks-3.1.3.tar.gz
  2. $ tar zxpf luarocks-3.1.3.tar.gz
  3. $ cd luarocks-3.1.3
  4. $ find / -name lua.h
  5. $ find / -name lua.h
  6. $ ./configure --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1/
  7. $ make
  8. $ make install
  9. $
  10. $
  11. $ vim /etc/sudoers
  12. Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
  13.  
  14. luarocks install lua-cjson 2.1.0.6-1 \
  15. && luarocks install luajson \
  16. && luarocks install xml \
  17. && luarocks install lbase64 \
  18. && luarocks install md5 \
  19. && luarocks install --server=http://luarocks.org/manifests/thanhdongnguyen kong-timechecking
  20.  
  21. $
  22.  
  23. luarocks install httpclient \
  24. && luarocks install kong-auth-key-jwt-server \
  25. && luarocks install lua-cjson \
  26. && luarocks install kong-signature-and-remove-attr
  27.  
  28. $
  29. $ luarocks install kong-auth-signature
  30. $
  31. $ vim /etc/kong/kong.conf
  32. plugins = bundled,kong-timechecking,kong-auth-signature,kong-auth-key-jwt-server
  33.  
  34. kong restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement