Chinaunix

标题: FreeBSD 运行 uwsgi 问题 [打印本页]

作者: jiekechoo    时间: 2014-08-25 10:44
标题: FreeBSD 运行 uwsgi 问题
各位,请教一个问题。我以前一直使用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相关内容?

作者: ykklle    时间: 2014-08-30 14:22
  1. sysctl kern.ipc | grep -i sem
复制代码
看看是不是这里改。

需要改的时候输入(举个例子)
  1. sysctl kern.ipc.semmni=50
复制代码





欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2