V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
longmeier90
V2EX  ›  Python

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

  •  
  •   longmeier90 · 2021-06-09 19:15:05 +08:00 · 1481 次点击
    这是一个创建于 1266 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用 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
    longmeier90
        1
    longmeier90  
    OP
       2021-06-09 19:18:49 +08:00
    已解决,加上完整路径就可以。
    julyclyde
        2
    julyclyde  
       2021-06-10 11:51:50 +08:00
    @longmeier90 按说不应该可以啊
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5404 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:17 · PVG 17:17 · LAX 01:17 · JFK 04:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.