Flask+mod_wsgi+apache the deployment on Windows

Source: Internet
Author: User
Tags fully qualified domain name

python3.5 has been installed.

1, Installation flask:

Pip Install flask

2. Install Apache:

Apache is open source software for Windows environments, and it does not directly provide a compiled version.
You can download the appropriate version of your environment in http://www.apachelounge.com/download/. Based on my own current environment, I chose Win32 VC10 compiled Apache2.4 version
Download the package to this computer, and then copy the Apache24 folder inside the compressed package to C: \.
Of course, you can copy to any location on your system, but Apache's default configuration is C:\Apache24.

If you run IIS on this computer, turn it off. Because IIS and Apache both use port 80 by default. If you want to configure other ports, I'm sure it's not hard. Wait until the flask has been successfully deployed. Open CMD:>CD \ c \ with Administrator
>CD apache24\bin\

Httpd-k install-n "Apache2.4"

Httpd-k start

Such as:

Start Apache encountered error: Httpd:could not reliably determine the server ' s fully qualified domain name

Edit the httpd.conf file, search for "#ServerName", add ServerName localhost:80

Flask+mod_wsgi+apache the deployment on Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.