20171216 模仿如何将py3部署到apache2时学到的新命令

Getting Flask to run on Apache

So at this point you should have a simple Flask App that can run and

be seen through the browser and an Apache server that’s running. By

default, the server will always be running but if you’re unsure you can

check the status through the command:

sudo /etc/init,d/apache2 status

If it’s not running just type:

sudo /etc/init.d/apache2 start

Our next step is to create a mod_wsgi file that our Apache server

will use to run our Flask App. We can create it in the same directory as

our original app:

cd /var/www/flask

sudo touchapp.wsgi

sudo nanoapp.wsgi

你可能感兴趣的:(20171216 模仿如何将py3部署到apache2时学到的新命令)