centos7 安装 kong 遇到一个问题,请各位大佬给个建议
我用 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
不知道怎么解决。 ----------------------- 以下是精选回复-----------------------
答:已解决,加上完整路径就可以。
0条评论