1. 程式人生 > 其它 >Linux區域網傳檔案到iPad上

Linux區域網傳檔案到iPad上

技術標籤:pythonubuntulinux

一、環境要求

  • iPad和Linux處在同一個區域網

二、具體步驟

1. 將Linux作為伺服器

若Python版本為Python2

python -m SimpleHTTPServer 8888

若Python版本為Python3

python -m http.server 8888

其中埠號可以任意指定,預設為8000

2.檢視Linux本機IP

ifconfig

結果如下,可以看出IP地址為192.168.0.103
在這裡插入圖片描述

3.在iPad上輸入192.168.0.103:8000便可以訪問檔案