Lazy loaded image
技术分享
Github上斩获43.9K星!!!破手机秒变服务器
字数 1248阅读时长 4 分钟
2025-8-10
2025-8-10
type
status
date
slug
summary
tags
category
icon
password
发布时间
文章链接
作者
来源

Github上斩获43.9K星!!!破手机秒变服务器

2025-08-09 21:00:00
手机玩Linux不是梦!你是否对Android的局限性感到无奈?你是否想在手机上运行强大的命令行工具、搭建服务器甚至折腾一些开发环境?今天介绍的这个开源项目——Termux,绝对会让你的生活更有玩头!它将安卓手机变成一个强大的Linux环境,适合黑客、开发者和极客入门。太吊了,不试后悔!
Termux是什么 $ uname -a Linux localhost 3.10.40-geec2459 #1 SMP PREEMPT Wed Jan 28 22:14:35 UTC 2015 armv71 Android $ apt update Hit http://apt.termux.com stable InRelease Hit http://apt.termux.com stable/main all Packages Hit http://apt.termux.com stable/main arm Packages Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. $

This is a comment

class Person attr_accessor :name def initialize(attributes={}) @name =attributes[:name] end def self.greet "hello" end end person1 = Person.new(:name =>"Chris") print Person::greet,"",person1.name, puts "another #{Person::greet} #{person1.name}' [0] 0:bash* "localhost" 17:13 30-Jun-15
Termux是一个运行在Android系统上的终端模拟器和Linux环境。它让你的手机瞬间具备命令行操作能力,支持安装大量开源软件包,比如SSH、Python、Node.js、Git等等,甚至让你轻松地搭建服务器或者运行Python脚本。酷炫又实用!
技术栈
+65 contributors Languages 主要使用Java作为核心开发语言,同时结合C++提供高性能支持,其余还包含了一些Shell脚本等组件。
核心功能 Tasks: 83, 1700 thr; 1 runni Load average: Uptime:23:42:41 11.6611 Mem[|||| 2457/2969MB] Swp[ PID USER PRI NI VIRT RES SHRS CPU% MEM% TIME 0074 u0_a106 20 0 9724 2176 728 R 14.1 0.1 0:01. 258 12 -8 238M 11224 4612 S 3.1 0.4 1h54: 9586 u0_a106 20 1574M 81772 30344 S 2.5 2.7 0:14. 2070 14 61876M 132M 31872 S 1.8 4.5 33:16. 807 18 21747M 135M 29340 1.8 4.6 1h00: 9682 20 1876M 132M 31872 S 1.2 4.5 20:45 275 20 238M 11224 4612 S 1.2 0.4 8:13. 1027 20 42612 1460 448 1.2 0.0 2:47 9611 u0_a106 16 1574M 81772 30344 S 0.6 2.7 0:04. 0808 14 61699M 119M 29340 S 0.6 4.0 1:01. 9683 14-6 1876M 132M 31872 S 0.6 4.5 7:37. 9666 14-6 1876M 132M 31872 S 0.6 4.5 4:31. 274 11-9 238M 11224 4612 S 0.6 0.4 3:05. 1026 20 42612 1460 448 S 0.6 0.0 0:04. 1350 20 1747M 135M 29340 S 0.6 4.6 1:38 1370 20 1747M 135M 29340 S 0.6 4.6 1:39. 8596 20 1660M 150M 38908 S 0.6 5.1 0:09. 321 11 -9 238M 11224 4612 S 0.0 0.4 56:22. 7435 20 1641M 113M 50496 S 0.0 3.8 0:16.
1Help F2Setup F3SearchF4FilterF5Tree F6SortByF7Nice -F8Ni
强大的命令行工具支持
支持apt包管理,你可以安装几乎所有主流工具,例如Python、Ruby、Node.js和Git。 $ apt install sl Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: sl 0 upgraded, 1 newly installed,0 to remove and 43 not upgraded. Need to get 5558 B of archives. After this operation,119 kB of additional disk space will be used. 0% [Working] 定制化环境
可以安装插件模块,扩展Termux的功能,比如支持启动脚本的Termux:Boot、提供更多API接口的Termux:API。
丰富的网络功能
支持SSH客户端和服务端功能,让你可以用它来登录远程服务器或搭建自己的服务器。
开发友好
支持运行Bash脚本、Python脚本,甚至JavaScript,让你随时随地变身开发者。 $ apt install python Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: python 0 upgraded, 1 newly installed,0 to remove and 0 not upgraded. Need to get 0 B/5147 kB of archives. After this operation, 21.0 MB of additional disk space will be used. Selecting previously unselected package python. Reading database ...6905 files and directories currently installed.) Preparing to unpack .../archives/python_3.4.3_i68 deb ... Unpacking python (3.4.3)... Setting up python(3.4.3)... $ python Python 3.4.3 (default, Apr 5 2015, 00:59:51) [GCC 4.8] on linux Type "help","copyright","credits"or "license" for more information.
import math math.pi 3.141592653589793 跨平台工具体验
无需root,同时支持Android 7.0及以上版本。
安装指南
前往F-Droid网站搜索Termux,或直接点击[Termux下载页面]下载并安装APK文件。
前往Termux Releases页面,下载最新版本的APK文件。安装后,直接打开即可使用。 版本 大小 日期 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 24.3 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 24.1 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 663 Bytes May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 77.9 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 24.3 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 25.4 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 34.1 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 31.3 MB May 23 termux-app_v0.119.0-beta.3+apt-android-5-github-de... 663 Bytes May 23 termux-app_v0.119.0-beta.3+apt-android-7-github-de... 114 MB May 23 termux-app_v0.119.0-beta.3+apt-android-7-github-de... 33.4 MB May 23 termux-app_v0.119.0-beta.3+apt-android-7-github-de... 34.2 MB May 23
打开Termux后,输入以下命令更新环境并安装常用工具: pkg update && pkg upgrade pkg install python git nano 4. 扩展功能插件安装: 如果需要使用额外功能,比如开机脚本或文件共享,可以在GitHub/F-Droid上找到Termux官方插件,比如: Termux:API Termux:Boot 安装顺序一致即可。
Termux简直就是开发者的移动神器!它把Linux的强大功能装进你的口袋,无需折腾刷机或root,随时随地体验命令行的乐趣——不论是远程管理、学习开发,还是轻度折腾都会很方便。用吧,玩吧,去释放你的创造力!
上一篇
我赌上了全部,你说你怂了
下一篇
MoonTV + OrionTV 配置教程!转发