$ pacman -S python-pip nginx uwsgi-plugin-python uwsgi
$ /etc/nginx/ (nginx directory)
$ /etc/uwsgi/ (uwsgi directory)
$ /usr/share/nginx/uswgi_test/ (app directory)
# override ngnix.conf in /etc/nginx/
$ cd /usr/share/nginx/uswgi_test/
$ mkdir log
$ cd log
$ touch uswgi_test.log
$ sudo chmod 777 uswgi_test.log
# create hello.py
# create uwsgi_test.nginx.conf
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip install flask
or
(venv) $ pip install -r requirements.txt
$ deactivate
$ sudo chown http:http -R /usr/share/nginx/uswgi_test/
$ cd /etc/uwsgi/
# create uwsgi_test.ini
$ systemctl start nginx.service
$ systemctl start uwsgi@uswgi_test.service
$ uwsgi --http :8000 --plugin python --wsgi-file hello.py --callable app -H /usr/share/nginx/uwsgi_test/venv
$ uwsgi --ini uwsgi_test.uwsgi.ini