• Http server


    Using Python to quickly build a local directory as a Http server
       
    - Quick way to open CMD command in any folder in Windows system:

        Method 1:
        
            Press shift in the margin of the folder and right-click the mouse button.
            Select 'Open Command Window Here'.
            Win10: Select 'powershell',can also enter "start cmd"

        Method 2:
            Enter CMD to return in the path box on this folder


    - Steps:

        1.Install python, add installation directory to system environment variable PATH
        2.Get the local IP address through the'ipconfig'command
        3.Open CMD command in the HttpServer folder
        4.Run the following command
        
            python -m http.server 8010
            # python 3.0
            python -m SimpleHTTPServer 8010
            # python 2.0
            
            --> Serving HTTP on 0.0.0.0 port 8010 ...


        5.Usage:
        
            local:
            http://localhost:8010/
            webs:
            http://192.168.8.112:8010/
            # '192.168.8.112' is your IP,
            # '8010':Customizable port number

  • 相关阅读:
    windows10安装pycharm,以及pycharm教程和破解码
    windows 10安装python3和python2
    Git之仓库管理
    Python操作 Excel表格
    ansible 基础操作
    Flask-Migrate
    flask-script
    flask-sqlalchemy
    基于数字证书的二次登录认证流程
    摘录:识别系统原理(转)
  • 原文地址:https://www.cnblogs.com/badweather/p/Gloria.html
Copyright © 2020-2023  润新知