免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2896 | 回复: 1
打印 上一主题 下一主题

[FreeBSD] FreeBSD 运行 uwsgi 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-25 10:44 |只看该作者 |倒序浏览
各位,请教一个问题。我以前一直使用centos作为服务器的,现在有一台freebsd 8.2,运行uwsgi出现以下故障:
  1. *** Starting uWSGI 2.0.6 (64bit) on [Sun Aug 24 11:42:07 2014] ***
  2. compiled with version: 4.2.1 20070719  [FreeBSD] on 24 August 2014 11:29:21
  3. os: FreeBSD-8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Jan 10 14:50:40 PST 2012     root@web0.local:/usr/obj/usr/src/sys/MYKERNEL8.2
  4. nodename: j-www.local
  5. machine: amd64
  6. clock source: unix
  7. pcre jit disabled
  8. detected number of CPU cores: 4
  9. current working directory: /s/etc
  10. detected binary path: uwsgi
  11. uWSGI running as root, you can use --uid/--gid/--chroot options
  12. *** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
  13. *** WARNING: you are running uWSGI without its master process manager ***
  14. your processes number limit is 5547
  15. your memory page size is 4096 bytes
  16. detected max file descriptor number: 11095
  17. lock engine: ipcsem
  18. uwsgi_lock_ipcsem_init()/semget(): Function not implemented [core/lock.c line 507]
  19. uwsgi_ipcsem_clear()/semctl(): Function not implemented [core/lock.c line 631]
复制代码
经过查询,需要修改一下资料:
  1. On OpenBSD, NetBSD and FreeBSD < 9, SysV IPC semaphores are used as the locking subsystem. These
  2. operating systems tend to limit the number of allocable semaphores to fairly small values. You should raise the
  3. default limits if you plan to run more than one uWSGI instance. FreeBSD 9 has POSIX semaphores, so you do
  4. not need to bother with that.
复制代码
请问,该怎么修改ipc相关内容?

论坛徽章:
0
2 [报告]
发表于 2014-08-30 14:22 |只看该作者
  1. sysctl kern.ipc | grep -i sem
复制代码
看看是不是这里改。

需要改的时候输入(举个例子)
  1. sysctl kern.ipc.semmni=50
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP