[遠端伺服器篇] 如何快速啟動「遠端伺服器」的web界面檔案瀏覽器(web based file browser) - tsungjung411/python-study GitHub Wiki

啟動「遠端伺服器」的web界面檔案瀏覽器

ubuntu@remote-server$ python3 -m http.server --help
usage: server.py [-h] [--cgi] [--bind ADDRESS] [port]

positional arguments:
  port                  Specify alternate port [default: 8000]

optional arguments:
  -h, --help            show this help message and exit
  --cgi                 Run as CGI Server
  --bind ADDRESS, -b ADDRESS
                        Specify alternate bind address [default: all
                        interfaces]
ubuntu@remote-server$ python3 -m http.server 9999
Serving HTTP on 0.0.0.0 port 9999 (http://0.0.0.0:9999/) ...

測試瀏覽器存取

http://203.145.218.3:9999/