uwsgi部署web项目时的问题

在LINUX下部署Nginx、uwsgi、django时,出现问题:

1.找不到项目:

django.core.exceptions.ImproperlyConfigured: Error loading cx_Oracle module: libclntsh.so.11.1: cannot open shared object file: No such file or directory
unable to load app 0 (mountpoint='') (callable not found or import error

在安装cx_Oracle的前提下,找不到这个包。

解决办法:

$ echo /oracle/product/11.1.0/db_1/**lib > /etc/ld.so.conf.d/oracle.conf
$ ldconfig

在root用户下运行上面两个命令,就ok了,/oracle/product/11.1.0/db_1/**lib这个路径根据自己情况更改

2.uwsgi启动太多次:

your processes number limit is 16384
your memory page size is 4096 bytes
detected max file descriptor number: 65536
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
probably another instance of uWSGI is running on the same address (:8080).
bind(): Address already in use [core/socket.c line 769]


可以用命令杀掉这个端口在重启:

sudo fuser -k 8080/tcp


  • 7
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值