博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux下离线安装jq工具
阅读量:3949 次
发布时间:2019-05-24

本文共 550 字,大约阅读时间需要 1 分钟。

linux下离线安装jq工具

0.jq作用

jq可以将json数据格式化,也可以按照一个规则将数据切片过滤。

1.下载

点击下载

官网:https://stedolan.github.io/jq/

2.安装

将下载后的安装包上传到linux上任意地方

然后执行以下命令解压编译安装

tar -zxvf jq-1.5.tar.gzcd jq-1.5./configure && make && make install

3.测试

输入以下命令测试

echo '{"id":1,"name":"xhx"}' | jq .

更多jq使用教程查看:https://stedolan.github.io/jq/tutorial/

如果执行报错:curl: (1) Protocol “https” not supported or disabled in libcurl 查看

如果执行报错:configure: error: You need bison version 3.0 or greater, or use --disable-maintainer-mode

安装时就执行

./configure  --disable-maintainer-mode && make && make install

转载地址:http://cduzi.baihongyu.com/

你可能感兴趣的文章
mysql建表 表名与关键字冲突
查看>>
mysql 创建单表外键关联多表
查看>>
postman使用
查看>>
ClassNotFoundException和NoClassDefFoundError的区别
查看>>
Tomcat Connector三种运行模式(BIO, NIO, APR)的比较和优化
查看>>
spring注解@Primary与@Qualifier
查看>>
annotation之@Autowired、@Inject、@Resource三者区别
查看>>
idea启动微服务找不到配置文件
查看>>
Java通过反射机制调用某个类的方法
查看>>
字节跳到面试题
查看>>
Linux查看物理CPU个数
查看>>
Linux学习之网络IO,磁盘io
查看>>
ES7.6.2安装
查看>>
查看jar依赖树
查看>>
idea运行gradle项目
查看>>
es安装ltr插件
查看>>
开源ltr-es-7.6.2代码到本地idea打开出现各种错误总结
查看>>
Requests实践详解&& python通过连接开启https的elasticsearch7 服务器
查看>>
ES查询流程源码解析
查看>>
ldaps与ldap over TLS
查看>>