python起一个固定端口 发表于 2019-12-21 分类于 python python3python -m http.serve [port] 1234567891011121314151617# python -m http.server --help[root@hadoop01 ~]# python3 -m http.server --helpusage: server.py [-h] [--cgi] [--bind ADDRESS] [--directory DIRECTORY] [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] --directory DIRECTORY, -d DIRECTORY Specify alternative directory [default:current directory] python2python -m SimpleHTTPServer [port] 本文作者: Mr Wang 本文链接: https://forgetst.github.io/python/python起一个固定端口.html 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处! -------------本文结束感谢您的阅读-------------