这是一个创建于 1264 天前的主题,其中的信息可能已经有所发展或是发生改变。
我用 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
不知道怎么解决。
2 条回复 • 2021-06-10 11:51:50 +08:00
|
|
1
longmeier90 2021-06-09 19:18:49 +08:00
已解决,加上完整路径就可以。
|