2016年7月12日 星期二

How to build Server Flask(Framework) Applications, uWsgi and nginx on CentOS 7

首先可參考此連結步驟
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-centos-7

you might meet some problems.
connect() to unix:myproject.sock failed (13: Permission denied) while connecting to upstream

you can using below command.
$ sudo ~/
$ sudo grep nginx /var/log/audit/audit.log | audit2allow -M nginx
$ sudo semodule -i nginx.pp

$ setenforce 1 //開啟
$ setenforce 0 //關閉

1 則留言:

  1. How to Play Baccarat – Strategies and Advice - Wrothione
    Baccarat is a game of strategy 바카라 and strategy. The main reason I play Baccarat is because it is a popular 메리트카지노 game. 1xbet korean

    回覆刪除