According to Tengine's official website, the Ngx_dso_module module is used to dynamically load modules at runtime without having to recompile the tengine every time. The number of dynamic load modules is limited to 128, if the dynamic module has been loaded modified, then must be re-tengine to take effect, and only support the HTTP module.
In fact, Ngx_dso_module is the Tenginx of the module, when the installation Tengine installed, can be viewed through sbin/
I had my project with my colleague's computer yesterday.
Modify host,nginx.conf complete, cmd into nginx directory
Nginx Stop
Start Nginx
Open the server_name you deserve.
403
Why? View the configuration file first
OK no problem
Then check the file permissions (win under the permission, special feel like not exist, otherwise how can have so many family b
For example, I have a file storage server, bandwidth always keep up with the situation. The server can be configured with some configuration to reduce the bandwidth pressure. The cost savings are relative to the company. Look for the Nginx configuration for bandwidth operations.
Nginx provides limit_rate and limit_rate_after Details Query Nginx configuration
Article Title: Build a flv Streaming Media Server using nginx. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I,
Introduction to FLV video publishing methods
There are two methods to publish FLV videos.
1,
HTTP
In this way, you need to download the FLV video file and play it locally. Once the FLV video f
Nginx worker Process Number
Syntax: worker_processes number;Default: Worker_processes 1;Role: Defines the number of worker processes in the Master_worker run mode. The number of worker processes directly affects performance. So, how many fits? Based on business requirements. Each worker is a single-threaded process, and his demons invoke each module to implement a variety of functions. If you determine that these modules do not have plug-in calls, th
1.Nginx Server optimization (mainly related to the configuration of some properties of the nginx.conf file)
#一般建议小于CPU个数, the general process runs on the CPU, and Nginx is a non-blocking multiplexed Epoll model that takes time1.worker_processes#将work process is bound to a specific CPU to avoid switching overhead between CPUs (8-core setup 00000001 00000010 00000100 00001000)2.worker_cpu_affinity 0001 0010
When doing a project, the design of front-end separation is adopted, and the rest-style HTTP interface is designed to meet the background service call and the front-end to use the AJAX call directly. , then encountered a cross-domain problem, the background is the spring MVC structure, the HTTP method supports GET, post, put, delete, option and other methods, because at the time of the post call, the front-end HTTP will first take option to the server side, 204 and then submit the request data,
Modify PHP configuration file
Parameter setting descriptionvi php.ini file_uploads on #是否允许通过HTTP上传文件的开关。默认为ON即是开 upload_tmp_dir – #文件上传至服务器上存储临时文件的地方,如果没指定就会用系统默认的临时文件夹 upload_max_filesize 8m #允许上传文件大小的最大值。默认为2M post_max_size 8m #通过表单POST给PHP的所能接收的最大值,包括表单里的所有值。默认为8M DescriptionGenerally speaking, after setting up the above four parameters, it is not a problem to upload However, if you want to upload a large file of >8m, it is not necessarily possible to set the above four items. Unless your
Add code in the middle of the http{} of the nginx.conf file under the Conf directory, using the same principle as the Nginx reverse proxy
add_header Access-Control-Allow-Origin*; add_header Access-Control-Allow-Headers X-Requested-With; add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i
'). Text (i)); };
I have written two articles in front of the introduction of Nginx_http_limit_req_module and Nginx_http_limit_conn_module, respectively, the number of user requests and the number of connections to limit, and the white list is mainly to some internal personnel division, and thus unaffected by limitations.
Take a look at the previous article:Nginx Limit number of requestshttp://blog.csdn.net/wanglei_storage/article/details/51076882Nginx Limit number of connectionshttp://blog.csdn.net/wanglei_stor
There are several types of Nginx location:
1. prefix, can have = or ^~ modification, for example
Location//start of
location/img//img/the beginning of the
Location =/a.htm just/a.htm
Location ^~/d matches no longer checks for regular expression location
2. Regular expressions, fixed ~ or ~* (case-insensitive) start with, for example:
Location ~ \.html$
Location ~* \.gif$
When there are multiple location, the priority is as follows:
1.Test the URI aga
The first few days of using the public platform, the developer tool can be configured callback address, some events through the address back to the developer. The URL needs to be authenticated the first time it is configured. Simply send a string of strings to the server specified by the URL, and then the server must return a string of strings, that is, echostr.
I'm going to use Nginx,ng to go back to Tomcat, so I'm just going to return the echost
Hello.
This should be a problem when Uwsgi gets the kernel release version of your system during installation.
In the program uwsgiconfig.py
uwsgi_os_k = re.split('[-+]', os.uname()[2])[0]
If the system kernel release version is ' 2.6.32_1-12-0-0 ', the program gets uwsgi_os_k = ' 2.6.32_1 ',K_minor = ' 32_1 ' After processing iteration, error in int (k_minor) >= 25 o'clock because K_minor = ' 32_1 ' translates the Digital times wrong.
Modify:You can modify the uwsgiconfig.py file in the U
#定义代理缓存路径, cache file save path cache initial size and maximum cache time
Proxy_cache_path d:\code\cache levels=1:2 keys_z max_size=20m inactive=1m;
Location/{
#配置上面定义的keys_zone的值Proxy_cache cache1;
#配置url中包括哪个参数的时候不去缓存中查询Proxy_cache_bypass $arg _name;
#定义缓存的keyProxy_cache_key $host $uri$is_args$args;
#缓存时间, if there is cache-control in the header information in response, the cache time in the header will prevail.Proxy_cache_valid 2m;
#当缓存失效后回源出错的时候可以使用缓存中旧数据, the old is better than wron
1. Polling (default)
Each request is assigned to a different back-end server in chronological order, and can be automatically rejected if the backend server is down.
## The default server#upstream192.168.93.128{ server192.168.1.8:80 weight=2; server192.168.93.128:8080 weight=1;}server { listen80; server_name192.168.93.128; location / { #设置主机头和客户端真实地址,以便服务器获取客户端真实IPproxy_set_header$host; proxy_set_header$remote_addr; proxy_set_header$proxy_add_x_forwar
$uri refers to the requested file and path, and does not contain "?" or "#" stuff like that.
$request _uri refers to the entire string of the request, including what is requested later
For example:$uri: Www.baidu.com/document
$request _uri:www.baidu.com/document?x=1
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the
Lua sometimes has to ask for outside links, tried several ways to find the best performance in this way
location /set { default_type'text/html'; proxy_set_header Host test.yufei.com; proxy_connect_timeout 5s; proxy_send_timeout 3s; proxy_read_timeout 3s; proxy_pass http://test.yufei.com/api?a=$aaab=$bbb; } location /change { set$a''; set$b''; content_by_lua ' local time = os.date("%Y%m%d") local args
Cainiao nginx Source Code Analysis configuration and deployment (1) Implement nginx "I love you" and nginx source code
Cainiao nginx Source Code Analysis configuration and deployment (1) manually configure nginx "I love you"
Author: Echo Chen (Chen Bin)
Email: chenb198
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.