#运行用户#user nobody;#开启进程数 [0-9\.]+),?.*$ $firstAddr;}## 针对原始用户 IP 地址做限制limit_conn_zone $clientRealIp zone=TotalConnLimitZone:20m ;limit_conn TotalConnL...
分类:
其他好文 时间:
2014-07-29 17:35:52
阅读次数:
303
使用Squid对上网行为进行控制修改Squid的配置文件/etc/squid/squid.conf在默认的ACL规则之后添加自定义的ACL1 #禁止下载的文件类型2 acl denyfiles urlpath_regex -i \.mp3$ \.avi$ \.zip$ \.rar$ \.exe$ \...
分类:
其他好文 时间:
2014-07-29 17:18:32
阅读次数:
228
DR模式和NAT模式有点小区别。首先看下拓扑图吧下面的lo请替换成lo:0这次可以用指网关的,因为模拟的实验他们都是在一个网段内realserver11、在配置文件中添加vim/etc/sysctl.confnet.ipv4.conf.all.arp_announce=2net.ipv4.conf.lo.arp_announce=2net.ipv4.conf.all.arp_ignor..
分类:
其他好文 时间:
2014-07-29 15:59:09
阅读次数:
243
Nginx默认不支持thinkphp的pathinfo模式,无奈只能修改nginx配置。修改后的配置如下:1.nginx.conf:userapacheapache;worker_processes16;worker_cpu_affinityauto;pid/var/run/nginx.pid;worker_rlimit_nofile51200;events{useepoll;worker_connections51200;}http{includemim..
分类:
Web程序 时间:
2014-07-29 15:34:09
阅读次数:
245
通过yum安装的httpd,默认情况下其配置文件为/etc/httpd/conf/httpd.conf,以及/etc/httpd/conf.d/*.conf。配置文件主要有三部分组成[root@localhost~]#grep‘Section‘/etc/httpd/conf/httpd.conf
###Section1:GlobalEnvironment
###Section2:‘Main‘serverconfiguration
###Secti..
分类:
其他好文 时间:
2014-07-29 15:27:10
阅读次数:
303
#定义Nginx运行的用户和用户组user www www; #nginx进程数,建议设置为等于CPU总核心数。worker_processes 8; #全局错误日志定义类型,[ debug | info | notice | warn | error | crit ]error_log ar/loginx/error.log info; #进程文件pid ar/runinx.pid; #一个ng...
分类:
其他好文 时间:
2014-07-29 15:00:28
阅读次数:
342
首先,直接把相应的war包放到$TOMCAT_HOME/webapps下(我直接用的WinSCP工具上传)然后,修改$TOMCAT_HOME/conf/server.xml,在Host配置段中添加类似于如下内容: 其中,docBase参数标识的是war包的名称。访问时,使用如下地址进行访问:htt....
分类:
系统相关 时间:
2014-07-29 14:09:39
阅读次数:
237
例如你的原路径是 http://localhost/test/index.php/home/goods/index.html那么现在的地址是 http://localhost/test/home/goods/index.html 如何去掉index.php呢?1.httpd.conf配置文件中加载了...
分类:
Web程序 时间:
2014-07-29 14:06:58
阅读次数:
204
添加目录登陆认证location / { auth_basic "提示"; auth_basic_user_file /usr/conf/htpasswd;}auth_basic指令包含一个具有测试用户名和密码的HTTP基本认证,指定的参数将用于认证域。如果将值设置为...
分类:
Web程序 时间:
2014-07-29 13:53:08
阅读次数:
269
启动memcache
./memcached -d -m 2048 -u root -c 1024 -p 12000 -P /tmp/memcached1.pid
启动nginx
service nginx start 或者 /etc/init.d/nginx start
启动redis
redis-server /etc/redis.conf
re...
分类:
其他好文 时间:
2014-07-29 12:54:57
阅读次数:
219