opm OpenResty 包管理工具

发布时间: 更新时间: 总字数:178 阅读时间:1m 作者: IP属地: 分享 复制网址

opm OpenResty 包管理工具使用介绍

介绍

opm 默认位于 /opt/openresty/bin/ 目录下

  • help
$ opm --help
  • 搜索
$ opm search jwt
...
cdbattags/lua-resty-jwt                           JWT For The Great Openresty
...
  • 查看包信息
$ opm info cdbattags/lua-resty-jwt
Name             : lua-resty-jwt
Version          : 0.2.0
Abstract         : JWT For The Great Openresty
Author           : Christian Battaglia (cdbattags)
Account          : cdbattags
Code Repo        : https://github.com/cdbattags/lua-resty-jwt
License          : Apache License 2.0
Original Work    : yes
Requires         : luajit, jkeys089/lua-resty-hmac >= 0.02
  • 安装
$ opm install cdbattags/lua-resty-jwt
...
Package openresty/lua-resty-string 0.11 installed successfully under /opt/openresty/site/ .
Package jkeys089/lua-resty-hmac 0.06 installed successfully under /opt/openresty/site/ .
Package cdbattags/lua-resty-jwt 0.2.0 installed successfully under /opt/openresty/site/ .
$ ls /opt/openresty/site/pod/
lua-resty-hmac-0.06  lua-resty-jwt-0.2.0  lua-resty-string-0.11
  • 查看已经安装的包
$ opm list
jkeys089/lua-resty-hmac                                      0.06
cdbattags/lua-resty-jwt                                      0.2.0
openresty/lua-resty-string                                   0.11
  • 其他命令
    • upgrade 更新某个已安装的组件
    • update 更新所有已安装的组件
    • remove 删除已安装的组件
Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数