> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/andoid-shou-ji/termux/darkhttpd-jian-li-jian-yi-wang-ye-dang-an-fu-wu.md).

# darkhttpd建立簡易網頁檔案服務

## 列出手機可用的儲存

```
cd storage/
$ ls
dcim  downloads  external-1  movies  music  pictures  shared
$ ls -l
total 0
lrwxrwxrwx 1 u0_a427 u0_a427 24 Jun 16 19:18 dcim -> /storage/emulated/0/DCIM
lrwxrwxrwx 1 u0_a427 u0_a427 28 Jun 16 19:18 downloads -> /storage/emulated/0/Download
lrwxrwxrwx 1 u0_a427 u0_a427 48 Jun 16 19:18 external-1 -> /storage/9B43-B819/Android/data/com.termux/files
lrwxrwxrwx 1 u0_a427 u0_a427 26 Jun 16 19:18 movies -> /storage/emulated/0/Movies
lrwxrwxrwx 1 u0_a427 u0_a427 25 Jun 16 19:18 music -> /storage/emulated/0/Music
lrwxrwxrwx 1 u0_a427 u0_a427 28 Jun 16 19:18 pictures -> /storage/emulated/0/Pictures
lrwxrwxrwx 1 u0_a427 u0_a427 19 Jun 16 19:18 shared -> /storage/emulated/0
```

## **安裝 darkhttpd**

**apt install darkhttpd**

### **使用darkhttpd**分享\[外部SD卡]->Termux可讀寫資料

```
darkhttpd /storage/9B43-B819/Android/data/com.termux/files --daemon
```

於瀏覽器輸入 <http://your-ip:8080><br>
