# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/termux/darkhttpd-jian-li-jian-yi-wang-ye-dang-an-fu-wu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
