在 ubuntu 12.04 上用apt-get install nginx-full uwsgi uwsgi-plugin-python
命令新安装的uwsgi和nginx,然后执行下面的命令:
$ uwsgi --http :80
*** Starting uWSGI 1.0.3-debian (64bit) on [Thu Jan 29 15:11:54 2015] ***
compiled with version: 4.6.3 on 17 July 2012 02:26:54
current working directory: /home/vagrant/mypy-proj.com/application
detected binary path: /usr/bin/uwsgi-core
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
bind(): Permission denied [socket.c line 598]
请问这里是什么情况?我感觉仅仅用前面加sudo来解决,以后会出现问题的吧?
PS: 这几天在vagrant虚拟机上想配置uwsgi+nginx环境,请参看我之前提的两个问题:
80端口是需要root权限才能用的,你可以用大于1024的端口