發表文章

目前顯示的是有「server」標籤的文章

Nginx Vs Apache: Nginx Basic Architecture and Scalability

圖片
Nginx Vs Apache: Nginx Basic Architecture and Scalability The need for serving large number of concurrent requests is raising every day. The prediction of C10K problem (i.e 10,000 concurrent clients) started the research on web server architecture which could solve this problem. As a result Nginx architecture was developed. This article explains on a very high-level how Nginx works to solve the scalability problem, along with high level differences between Nginx and Apache webserver. Increasing Web Server Scalability The web server scalability problem can be solved either by increasing the hardware capabilities (i.e memory, CPU, etc ) or by improving the web server architecture. The goal here is to improve the web server architecture too optimize the hardware resources, which will eventually lead to a cost effective architecture. For solving this problem, In 2002 Igor Sysoev started developing a web server written in C, which had an efficient thread management. Nginx was ...

[Programming] Throw out a 'The Connection was reset' error after submiting (POST) form

Here are a number of reasons that may occurs error after submiting (POST) form: Too much parameter sent: Try to reduce the useless input before submit Reach the max input var: set "max_input_vars   1000" in php.ini or in PHP page Loading time too long: In particular, the values for max_execution_time and max_input_time could safely be increased. Both of these are currently set to 180 seconds, or 3 minutes Reach the max of files: Set " max_file_uploads   20" in php.ini or in PHP page Posting data too large: Set " post_max_size   28M" in php.ini or in PHP page Over memory: Set "memory_limit   128M" in php.ini or in PHP page

Common SSH Commands

Common SSH Commands Move into another directory Use this command to move into a directory: cd You can specify the full path from the root of the server: cd /home/00000/domains/ You can type the path from where you are now (leave out the beginning /): cd downloads/ You can go up a directory level: cd .. You can go to your home directory: cd ~ Where am I? Working with your server without graphics can take a little getting used to. If you ever need to see exactly which folder you're in, use the following command: pwd It stands for print working directory. You'll see output like this: /home/00000/data/ What's here? Next, we want to see a list of files and folders in our current directory: ls -alh ls is the list command, and -alh modifies the standard list in three ways. a means that all files, even hidden files, should be shown. l means that the long format is used - it shows things like file size and the date every file was last modified. h makes ...