Linux

linux下连接vpn

step0. 下载并安装pptp客户端
http://pptpclient.sourceforge.net/

step1.
sudo pptpsetup --create TUNEL --server SERVER --username USERNAME --password PASSWORD --encrypt --start

返回如下信息:
Using interface ppp0
Connect: ppp0 <--> /dev/pts/4
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
CHAP authentication succeeded
MPPE 128-bit stateless compression enabled
Cannot determine ethernet address for proxy ARP
local IP address 192.168.2.14
remote IP address 192.168.2.1

step2. 删除以前的默认网关

线程和进程

linux 下一个php 请求 就是一个进程
windows 下就是一个线程
你用 filemon 跟踪一下 apache.exe 就大致明白了

http://www.newsmth.net/bbscon.php?bid=261&id=77210

Syndicate content