function of the replication is possible. Of course, here is just a very easy particle system design, providing very little particle properties. But can also make a lot of effect come out. Suppose the reader. If you want more complex effects, you can extend this basic category on your own. Then add your own features.Nonsense not much to say, directly on the code:-----------------------------------------------------------------------//Declaration:copyright (c), by XJ, 2014. All right reserved.//
Detailed configuration and comments as follows, for everyone to learn the reference.Visible_hostname squid1.abc.com#设定squid的主机名, without this squid will not startHttp_port Accel Vhost Vport#设定squid为accel加速模式, Vhost must be added. Otherwise, the host header cannot be forwarded to the back-end server and an error cannot be found when accessing the host headerCache_peer 192.168.1.88 Parent 0 no-query Originser
failover and switch to another set of PHP-FPM services in upstream.
PHP-FPM can be configured to listen to different ports of the pool, different pool working process is not affected, you can put php-fpm different pool into nginx upstream cluster.
Nginx joins the AIO thread pool from 1.7.11 and is able to use multithreading to read and send files to prevent worker processes from being blocked. For an attachment that is exported after PHP authentication, PHP can tell the path of the Nginx file t
system CPU is being pressed to a very full state. When the network bandwidth is limited and the CPU resources are sufficient, the use of multi-thread compression dynamic migration technology will bring better results. When the network is plentiful and CPU resources are sufficient, the use of this technology will also reduce the total migration time.3. Multithreading compression Migration technology Enable methodSource side:1. Start the virtual machine/home/liufeng/qemu-system-x86_64-machine
Using squid as a directional proxy server can function like Nginx, and can store cached content in memory, Nginx cache content on a hard disk, and configure the same principle as nginx, squid himself works as a Web server, Direction proxy to the backend Web server to the user.
1. Install SquidTAR-ZXVF squid-3.4.10.tar.gzCD squid-3.4.10./configure--prefix=/usr/local/squid \--enable-gnuregex \--ENABLE-ICMP \--enable-linux-netfilter \--enable-default-err-language= "Simplify_chinese" \--enable-kill
Command required:xinputClear Use man xinput to query xinput Help document1, insert the mouse, open the terminal, enter the command:xinput Query is currently hanging on the device2. Unplug the mouse, open the terminal, and then enter command: Thexinput query is currently hung on the device, and the missing device is found even if you use the mouse3. Input command:xinput--set-prop "pointer:2.4g Mouse" "Device Accel Constant deceleration" 1.7Note: "poin
header sent by the backend, it ignores the other output from the backend, and sends the file to the user using its own components, including the caching header and the breakpoint reset optimization mechanism.
However, before using x-sendfile, we must understand that this is not a standard feature, and by default it is disabled by most Web servers. The implementation of different Web servers is not the same, including a different X-sendfile header format. If improperly configured, the user may d
Server home pageWEB1:[[Email protected]~] #echo WEB2:[Email protected]~]# echo 3) Configure Squid[[Email protected]~]# vim/etc/squid/squid.confHttp_port Accel VhostHttp_access Allow allCache_peer 192.168.1.18 Parent 0 originserver Round-robin weight=1Cache_peer 192.168.1.19 Parent 0 originserver Round-robin weight=1Visible_hostname Squid.david.devcache_mgr [email protected]4) Start Squid Service (this will cause an error, because the above set up 80
Flash allows any image to rotate quickly! You can learn this way through this tutorial. This tutorial is simply to make a most basic example, you need a better effect can play Ah! With Action Sctipt control can also make it from slow to fast effect!
Production steps:
Create a new Flash document, press Ctrl+j to modify the properties, the effect is as follows:
(Figure 1)
Then import a picture:
(Figure 2)
Then open the library, doub
1, Linux under Nginx default support X-sendfile modeNginx supports this feature by default and does not require additional modules to be loaded. The HTTP header that needs to be sent is x-accel-redirect. In addition, the following settings need to be made in the configuration filelocation/protected/{internal; Root/some/path; }Internal indicates that this path can only be accessed within Nginx, and cannot be accessed directly from the browser to preven
is the principle of jumping the request to a file on the server where the Web application ends before the server sends the file, and to invoke Yii\web\response::xsendfile () to use the feature. The following is a brief list of how some common Web servers enable X-sendfile features:
Apache:x-sendfile
Lighttpd v1.4:x-lighttpd-send-file
Lighttpd v1.5:x-sendfile
nginx:x-accel-redirect
Cherokee:x-sendfile and X-
;
void (*abort_request) (ngx_http_request_t *r);
call void (*finalize_request) at the end of the request (ngx_http_request_t *r,
ngx_int_t RC);
The redirect function ngx_int_t (*rewrite_redirect) (ngx_http_request_t *r) that can be implemented by the HTTP module
ngx_table_elt_t *h, size_t prefix); ngx_int_t (*rewrite_cookie) (ngx_http_request_t *r, ngx_table
_elt_t *h);
ngx_msec_t timeout;
registry regedit click Directory to:Hkey_local_machinesoftwaremicrosoftwindowscurrentversionrunRemove the right Dirrectlibrarysupport = "C:windowssystemdllclient.exe" to turn off Regedit and restart the computer.DEL C:windowssystemdllclient.exe OK Clear Trojan v2.0 open registry regedit click Directory to:hkey_user/. Default/software/mirabilis/icq/agent/apps/icq Accel/icqAccel is a "false" primary key, select the ICQ
Nginx configuration file protectedHeader("X-accel-redirect:/protected/".$filename);?>Here is the use of the alias, you can also use direct access to the way, specific to the Nginx official website about the xsendfile of the instructions, a look will understand!References and excerpts:1. Brother Bird: http://www.laruence.com/2012/05/02/2613.html2.nginx implementation: Https://www.markdream.com/technologies/programs/nginx-x-
; make makeinstall
2. Create the squid cache directory and log directory
Shell> groupadd squid
Shell> useradd-g squid-s/sbin/nologinsquid
Shell> mkdir/squid/data-p
Shell> mkdir/squid/log
Shell> chown-R squid. squid/squid
3. Edit the squid configuration file and configure it as the reverse proxy mode. Load the two web Servers
Shell> vim/usr/local/squid/etc/squid. conf # user and user group cache_inclutive_user inclusquid # host name visible_hostname squid1.lij.com # configure squid as reverse pr
working process, Nginx can configure fastcgi_next_upstream for failover, switch to another set of PHP-FPM services in upstream.
The PHP-FPM can be configured to listen to the pool of different ports, the working process in different pools is not affected, you can put the PHP-FPM of different pools in the Nginx upstream cluster.
Nginx is added to the AIO thread pool from 1.7.11, which can read and send files using multiple threads to prevent the worker process from being blocked. for attachments
only displayed after 256 bytes have been accepted, so you must send some extra spaces to let these browsers display the contents of the page.
So, the correct use of the two is the order. First Ob_flush, then flush,
Of course, in other sapi, do not call flush also can, only to ensure that your code portability, recommended for use.
Add a response header if you want to support on Nginx + FPM + PHP
Header (' X-accel-buffering:no '); This eliminates
logical restrictions.
To solve this problem, the XSendfile function provided by nginx simply uses the internal command. This command only accepts internal requests, that is, requests forwarded by the backend. In the backend view logic, you must explicitly write the headers information X-Accel-Redirect.
The pseudocode is as follows:
location /upload/(.*) { alias /vagrant/; internal;}@app.router('upload/
')@login_requireddef upload_file(filename
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.