TCP ADI in Linux(1): Introduction

今天开始好好研究TCP/IP的Linux实现,结合书和代码希望自己能对TCP这块更加的熟悉。读Kernel代码还是功利性强一点比较好,比如这次我是由于毕设相关才来仔细研究TCP这块的具体实现的。没有目的性的看这种大块头项目,效率比较难保障。Anyway,这个系列也是看到那块记录哪块,用以加强自己的理解。题目中的ADI分别是Architecture, Design, Implementation。书就是下面这一本了,英文的比较带劲,:)

《TCP/IP ARCHITECTURE, DESIGN, AND IMPLEMENTATION IN LINUX》 by Sameer Seth   

Read More

Setup Nginx server in linux

Installation

By default, Nginx will be installed in /usr/local/nginx.

./configure  
make  
make install  

Configuration

The configuration file is /usr/local/nginx/conf/nginx.conf.
Here is an
excellent simple tutorial, and here
is a full example.
If you want to show all the files in the root directory, you can turn
on autoindex like this:

location / {  
    autoindex on;  
    root /home;  
}  

Running Nginx

/usr/local/nginx/sbin/nginx          //start nginx  
/usr/local/nginx/sbin/nginx -s quit  //stop nginx  

Problems

If you do not need the rewrite module and gzip module, you can ignore the
errors with PCRE and gzip when configuring.

References

Install - Nginx Community
Nginx Configuration Primer