In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Concept
Nginx (engine x) is a high-performance HTTP and reverse proxy web server, as well as providing IMAP/POP3/SMTP services. Nginx was developed by Igor Sesoyev for the second most visited Rambler.ru site in Russia. The first public version 0.1.0 was released on October 4, 2004.
It distributes the source code as a BSD-like license and is known for its stability, rich feature set, sample configuration files, and low consumption of system resources. Nginx 1.0.4 was released on June 1, 2011.
Nginx is a lightweight Web server / reverse proxy server and email (IMAP/POP3) proxy server, distributed under the BSD-like protocol. It is characterized by less memory and strong concurrency ability. in fact, the concurrency ability of nginx performs better in the same type of web server.
Advantages of Nginx
Nginx can be compiled and run on most UnixLinux OS, and there is a portable version of Windows. The 1.4.0 stable version of Nginx was released on April 24, 2013. in general, for new sites, it is recommended to use the latest stable version as the production version, and existing sites are not urgent to upgrade.
The source code for Nginx uses 2-clause BSD-like license.
Lua
Is a concise, lightweight and extensible programming language. It was developed by a research team composed of Roberto Ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo in 1993. It is designed to be embedded in the application, so as to provide flexible extension and customization functions for the application. Lua is written by standard C and can be compiled and run on almost all operating systems and platforms. It also has a simultaneous JIT project that provides instant compilation on a specific platform, but Lua does not provide a powerful library, so it is not suitable to be used as a language for developing independent applications.
# value by millisecond
Math.randomseed (tostring (os.time ()): reverse (): sub (1,7))
Suppose the IP value of the server is two, 13 and 24
Action2= {13,24}
If the number of array elements is greater than 1
If (# action2) > 1 then
Reassign the server ip to one of the multiple element values of action2.
Action2=action2 [math.random (# action2)]
Print the reassigned aciton2 (server ip)
Print (action2)
End
Later, you can control a certain key/value in action2 = redis. If the number of value is more than 1, you can randomly take the value and return it to nginx.
Expand knowledge:
Redis
It's a key-value storage system. Similar to Memcached, it supports relatively more value types, including string (string), list (linked list), set (collection), zset (sorted set-ordered collection), and hash (hash type). These data types support push/pop, add/remove, and take intersection union and difference sets, and richer operations, and these operations are atomic. On this basis, redis supports a variety of different sorting methods. Like memcached, data is cached in memory for efficiency. The difference is that redis will periodically write updated data to disk or modify operations to additional record files, and on this basis to achieve master-slave (master-slave) synchronization.
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.