sudo apt-get install squid接着对/etc/squid/squid.conf作如下修改
http_port 8888 #设定proxy的端口为8888 acl homenet src 98.219.0.0/16 #把访问proxy的机器的网段设为homenet http_access allow homenet #所有从homenet定义的网段的访问许可设为允许
sudo apt-get install squid接着对/etc/squid/squid.conf作如下修改
http_port 8888 #设定proxy的端口为8888 acl homenet src 98.219.0.0/16 #把访问proxy的机器的网段设为homenet http_access allow homenet #所有从homenet定义的网段的访问许可设为允许
f(x) = 1+\frac{\int_0^{x-1}[f(t)+f(x-1-t)]dt}{x-1} = 1 + \frac{2}{x-1}\int_0^{x-1}f(t)dt
不难得知f(t)=1+2\frac{\int_0^{t-1}f(u)du}{(t-1)} = 1+\frac{2(t-2}{t-1}
f(4)=1+\frac{2}{3}[\int_0^{1}f(t)dt + \int_1^{2}f(t)dt + \int_2^{3}f(t)dt] = \frac{11}{3} - \frac{4}{3}ln 2