推荐学习书目
› 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 · Jun 9, 2021 · 2237 views
    This topic created in 1936 days ago, the information mentioned may be changed or developed.
    我用 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 replies  •  2021-06-10 11:51:50 +08:00
    longmeier90
        1
    longmeier90  
    OP
       Jun 9, 2021
    已解决,加上完整路径就可以。
    julyclyde
        2
    julyclyde  
       Jun 10, 2021
    @longmeier90 按说不应该可以啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   950 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 18:22 · PVG 02:22 · LAX 11:22 · JFK 14:22
    ♥ Do have faith in what you're doing.