centos7 安装 kong 遇到一个问题,请各位大佬给个建议

2021-06-09 19:15:05 +08:00
 longmeier90
我用 sudo yum install kong
启动 kong start --vv
'''
2021/06/09 19:09:50 [debug] /usr/local/openresty/nginx/sbin/nginx -v: 'nginx version: openresty/1.19.3.1'
2021/06/09 19:09:50 [debug] found OpenResty 'nginx' executable at /usr/local/openresty/nginx/sbin/nginx
2021/06/09 19:09:50 [debug] testing nginx configuration: KONG_NGINX_CONF_CHECK=true /usr/local/openresty/nginx/sbin/nginx -t -p /usr/local/kong -c nginx.conf
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:24: nginx configuration is invalid (exit code 1):
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /usr/local/kong/nginx.conf:6
nginx: the configuration file /usr/local/kong/nginx.conf syntax is ok
nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
nginx: configuration file /usr/local/kong/nginx.conf test failed
'''
提示 非 root 账户不能占用 1024 以下的端口;
但是我 sudo 执行不了,在 root 账户下面没法操作 kong
不知道怎么解决。
1381 次点击
所在节点    Python
2 条回复
longmeier90
2021-06-09 19:18:49 +08:00
已解决,加上完整路径就可以。
julyclyde
2021-06-10 11:51:50 +08:00
@longmeier90 按说不应该可以啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/782485

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX