美文网首页
Android手机使用Curl命令

Android手机使用Curl命令

作者: Mr张巍瀚 | 来源:发表于2017-10-15 14:23 被阅读0次

工具Termux(如果不能正常访问也可以在第三方市场下载)
环境:Root的Android手机
Termux是什么?

Termux is a terminal emulator and Linux environment bringing powerful terminal access to Android.

目前有国内源清华大学镜像网站所支持。Termux可以使用绝大部分Linux命令并自带包管理器apt。虽然大多数命令不需要Root权限,但是你会发现很多命令都会报错。curl命令也是如此,我在一个未ROOT的手机上能正常安装却无法使用curl命令,而在一个Root的手机上能够正常使用。

$apt update
$apt install apt-transport-https #用来访问开启HTTPS的网站比如说https://hacpai.com
$apt install curl

安装完成后可以测试一下curl https://hacpai.com

b5500d4dcf1d4c1aae4b457188a162f8-3.png
有关Termux的相关内容
GitHub:termux-packages
Termux支持的包列表大全

相关文章

网友评论

      本文标题:Android手机使用Curl命令

      本文链接:https://www.haomeiwen.com/subject/tzccuxtx.html