宝塔10周年开年大促,年度钜惠,先领红包再下单,企业版低至941元!查看活动
当前位置:论坛首页 > BUG提交 > Linux面板

【待反馈】报个debian13 兼容性bug,系统问题,只是让工程...

发表在 BUG提交2026-3-3 14:25 [复制链接] 1 153

debian13
Debian 的官方 Bug 跟踪系统里,有一个严重级别的 Bug(编号 #1071970),标题就是 “pcre3 should not be part of trixie”,即 pcre3 库不应该出现在 Debian 13(trixie)中。因此,在默认源中找不到它是符合预期的。



宝塔面板中的python网站中经常需要uwsgi
而uwsgi 需要 libpcre

因此
/www/server/pyporject_evn/paper/bin/uwsgi: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

导致宝塔中uwsgi全部用不了
over

使用道具 举报 只看该作者 回复
发表于 2026-3-5 09:27:19 | 显示全部楼层
您好,我是debian13系统,使用的Python环境是
  1. /www/server/pyporject_evn/versions/3.14.3/bin/uwsgi
复制代码


测试跑 uwsgi运行测试案例,正常运行。(可能我用的系统是刚安装过的),您尝试更新下系统试试
  1. apt update  -y  && apt upgrade -y
复制代码



测试代码:
myapp.py
  1. def application(environ, start_response):
  2.     # 设置响应头
  3.     status = '200 OK'
  4.     headers = [('Content-Type', 'text/html; charset=utf-8')]
  5.     start_response(status, headers)

  6.     # 页面内容
  7.     content = """
  8.     <html>
  9.         <head><title>uWSGI Powered</title></head>
  10.         <body>
  11.             <h1 style="color: #2c3e50;">Hello from uWSGI!</h1>
  12.             <p>这是一个由 Debian13 + uWSGI 驱动的简单页面。</p>
  13.             <hr>
  14.             <small>Server Time: 2026-03-04</small>
  15.         </body>
  16.     </html>
  17.     """
  18.     return [content.encode('utf-8')]
复制代码


uwsgi.ini  注意要放行8089端口
  1. [uwsgi]
  2. # 监听端口
  3. http = :8089

  4. # 项目目录和脚本
  5. chdir = .
  6. wsgi-file = myapp.py

  7. # 进程管理
  8. master = true
  9. processes = 4
  10. threads = 2

  11. # 这里的 application 是 myapp.py 里的函数名
  12. callable = application

  13. # 退出时自动清理环境
  14. vacuum = true
复制代码
d13版本.png
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表