Skip to content

엔지니어 대한민국

  • Glossary
  • Sample Page

Simple uWSGI example with Python

Posted on February 24, 2021February 24, 2021 by 솔천

Install uWSGI

$ pip install uwsgi

Make an application

$ vi foobar.py
def application(env, start_response):
    start_response('200 OK', [('Content-Type','text/html')])
    return [b"Hello World"]

Run uWSGI

$ uwsgi --http :9090 --wsgi-file foobar.py

Check the result

References:

  • Quickstart for Python/WSGI applications

Archived: Python, uWSGI

Post navigation

Previous Post Previous post:
Datadog Agent
Next Post Next post:
Flask + uWSGI + Docker

Categories

  • 3D Design (437)
    • Blender 4.0 Manual (436)
  • AI (5)
  • Algorithm (3)
    • Array (1)
    • Data Structure (1)
    • Linked List (1)
  • Apache (1)
  • API (2)
    • GraphQL (1)
    • REST (1)
    • RPC (2)
  • APIs (3)
    • Google (2)
    • OpenAI (1)
  • Bluehost (1)
  • Command Line (6)
  • CSS (1)
  • DataDog (3)
  • Docker (4)
  • Elasticsearch (2)
  • English (3)
    • Conversation (1)
    • Vocabulary (2)
  • Excel (1)
  • Flutter (11)
  • Git (1)
  • JavaScript (7)
    • Angular (2)
    • Node (1)
    • React (1)
  • Kafka (1)
  • LDAP (1)
  • MySQL (8)
  • PHP (1)
  • PostgreSQL (2)
  • Python (76)
    • Basic (9)
    • Django (1)
    • Elasticsearch DSL (1)
    • Flask (2)
    • Language Reference (10)
    • Load Test (2)
      • Locust (2)
    • Mobile (2)
    • pip (1)
    • Scripts (7)
    • SQLAlchemy (7)
    • Standard Library (8)
    • The Python Tutorial (5)
    • Unit Test (2)
    • Video/Audio Processing (1)
  • Redis (4)
  • Shell (1)
    • bash (1)
  • Uncategorized (3)
  • uWSGI (2)
  • WordPress (4)

YouTube Channel

YouTube Icon엔지니어대한민국
Powered by Wordpress / / Theme XSimply by Il Jester