In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The events module contains all the settings for handling connections in nginx.
The common configuration items are as follows
Events {
Use epoll
Worker_connections 20000
}
detailed description
Use epoll
# use epoll's Iamp O model (it's worth noting that if you don't know which polling method Nginx should use, it will choose the one that works best for your operating system)
Supplementary note:
Similar to apache, nginx has different event models for different operating systems.
A) Standard event model
Select and poll belong to the standard event model. If there is no more effective method in the current system, nginx will choose select or poll.
B) efficient event model
Kqueue: used in FreeBSD 4.1, OpenBSD 2.9, NetBSD 2.0 and MacOS X. Using kqueue on MacOS X systems with dual processors may cause the kernel to crash.
Epoll: used in Linux kernel version 2.6 and later.
/ dev/poll: used for Solaris 7 11 Universe 99, HP/UX 11.22 + (eventport), IRIX 6.5.15 + and Tru64 UNIX 5.1A +.
Eventport: used in Solaris 10. To prevent kernel crashes, it is necessary to install security patches
To check the linux version number, you can use the cat / proc/version command
Cat / proc/version
The output is as follows
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC)) # 1 SMP Fri Nov 22 03:15:09 UTC 2013
Worker_connections 2000
# maximum number of connections to worker processes theoretically the maximum number of connections per nginx server is the number of processes started by worker_processes*worker_connections worker_processes for us in main
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.