在另一个大陆帮助我解决服务器问题的友好灵魂给了我以下说明。我不想打扰他太多(而且他现在可能正在 sleep )所以我想我会打扰 StackOverflow 的好人。
他希望我以 root 身份启动 Varnish。我查阅了 Varnish 用户手册等,但不知道该怎么做。
请善待——这里是 Linux n00b。 (还请说明这些说明是否可以在任何地方使用,或者是否应该首先导航到某个目录——谢谢!)
(我的设置 --- VirtualBox 中的 Ubuntu Server 12.4.3,尝试安装 Plumi/Plone/Nginx/Varnish/Zope 堆栈。)
From the error below it seems that varnish does not start, or cannot bind to privileged port 80. Can you try to start it as root?
2013/09/29 06:24:54 [warn] 2680#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /home/vb/plumi.app/templates/main.conf:11
2013/09/29 06:24:54 [emerg] 2680#0: bind() to 0.0.0.0:80 failed (13: Permission denied)
最佳答案
为了将 Varnish 绑定(bind)到端口 80,您需要以 root 用户身份启动。
我很确定您上面的错误消息来自 nginx
要么这样开始:
sudo /path/to/nginx
或者这样
$ sudo su -
# /path/to/nginx
关于ubuntu - 以 root 身份启动 Varnish 的说明?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19239842/