Termux 一个Android操作系统的终端模拟器应用程序,可通过各种包进行扩展。是运行在 Android 上的 terminal。不需要root,运行于内部存储(不在SD卡上)。
自带了一个包管理器
可以安装许多现代化的开发和系统维护工具,如下:
由于项目定位是模拟Linux,那么和Linux上绝大部分操作命令方式都是一致的。
开源地址:https://github.com/termux/termux-app
去GitHub下载apk对应安装包https://github.com/termux/termux-app/releases
apk安装完成后,为了确保安装速度,我们使用清华的镜像源进行安装。打开该app执行如下的命令
sed -i 's@^\(deb.*stable main\)$@#\1\ndeb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main stable main@' $PREFIX/etc/apt/sources.list
apt update && apt upgrade
接下来你需要开启存储权限
termux-setup-storage
img
弹窗提醒你开启对应的权限。
image-20220928184518506
查看手机的资源情况。
top
pkg install nginx
nginx
pgrep nginx
26154
26153
localhost:8080
image-20220928185049913
nginx -s stop
在Linux上有一款经典的小火车,使用Termux也能在手机上跑起来了,神不神奇。
打开app执行如下的命令
apt install sl -y
sl
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有