1. sudo yum install epel-release
2. sudo yum install python-pip python-devel gcc nginx
3. sudo pip install virtualenv
4. mkdir ~/myproject
5. cd ~/myproject
6. virtualenv myprojectenv
7. source myprojectenv/bin/activate
8. pip install gunicorn flask
9. vim ~/myproject/myproject.py
from flask import Flask
application = Flask(__name__)
@application.route("/")
def hello():
return "<h1 style='color:blue'>Hello There!</h1>"
if __name__ == "__main__":
application.run(host='0.0.0.0')
10. python myproject.py
11. open
localhost:5000