推荐学习书目
› 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
liamzz
V2EX  ›  Python

uwsgi 启动 Python 时候报 OSError: [Errno 98] Address already in use,该如何解决,有用过 uwsgi 的 v 友吗

  •  
  •   liamzz · Aug 12, 2019 · 3342 views
    This topic created in 2605 days ago, the information mentioned may be changed or developed.
    15 replies  •  2019-08-14 10:12:49 +08:00
    wlzd
        1
    wlzd  
       Aug 12, 2019 via Android
    这不是说的很明显了,地址已被使用
    liamzz
        2
    liamzz  
    OP
       Aug 12, 2019
    @wlzd 关键 ps 命令查了又没有被使用
    ManjusakaL
        3
    ManjusakaL  
       Aug 12, 2019
    netstat -anp | grep 端口号
    liamzz
        4
    liamzz  
    OP
       Aug 12, 2019
    @ManjusakaL 端口没被占用,查了,是启动时候报这个的
    find456789
        5
    find456789  
       Aug 12, 2019
    看是不是没权限, 改个端口试试 ,比如 改成 9090 8080
    Latin
        6
    Latin  
       Aug 12, 2019
    第一步系统权限问题 sudo su
    第二步端口占用问题 netstat -nplt | grep port
    第三步自己多 try try
    est
        7
    est  
       Aug 12, 2019
    @liamzz 怎么查的。贴个命令行。
    hzwjz
        8
    hzwjz  
       Aug 12, 2019
    @liamzz #2 首先你使用的命令都使用错了,更不用说查到了。

    你可以使用 sudo lsof -i :port number
    ManjusakaL
        9
    ManjusakaL  
       Aug 12, 2019 via Android
    怎么查的,抛个命令
    wuwukai007
        10
    wuwukai007  
       Aug 12, 2019 via Android
    netstat -ntpl | 1080
    CLANNADHH
        11
    CLANNADHH  
       Aug 12, 2019 via Android
    lsof -i:端口号 查找下
    izoabr
        12
    izoabr  
       Aug 12, 2019
    reboot
    如果还是不行就 poweroff
    motianya211314
        13
    motianya211314  
       Aug 13, 2019
    用了 uwsgi,没碰到这问题。后续全换成 gunicorn 了
    julyclyde
        14
    julyclyde  
       Aug 13, 2019
    @motianya211314 头痛医脚
    motianya211314
        15
    motianya211314  
       Aug 14, 2019
    @julyclyde 看清楚再来回复,ok ? uwsgi 用了没碰到问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 56ms · UTC 12:55 · PVG 20:55 · LAX 05:55 · JFK 08:55
    ♥ Do have faith in what you're doing.