摘要: Nginx 的服务器使用越来越普遍,主要因为他的性能大大优于Apache2。但在使用过程中往往遇到一些问题,下面这个就是其中之一: 24: Too many open files 详细错误代码如下: 2011/05/01 23:00:49 [alert] 7387#0: *6259768 socke 阅读全文
posted @ 2016-11-25 15:28 helpwz 阅读(2389) 评论(0) 推荐(0) 编辑
摘要: 设置存放的目录:[root@Linux etc]# more /etc/my.cnf[mysqld]###此处省略N个字log-error=/var/log/mysql/mysql_error.log #错误日志log=/var/log/mysql/mysql.log ###最好注释掉,会产生大量的... 阅读全文
posted @ 2015-04-23 15:06 helpwz 阅读(93) 评论(0) 推荐(0) 编辑
摘要: .htaccess是什么.htaccess文件(或者"分布式配置文件")提供了针对目录改变配置的方法, 即,在一个特定的文档目录中放置一个包含一个或多个指令的文件, 以作用于此目录及其所有子目录。作为用户,所能使用的命令受到限制。管理员可以通过Apache的AllowOverride指令来设置。概述... 阅读全文
posted @ 2015-04-03 18:24 helpwz 阅读(286) 评论(0) 推荐(0) 编辑
摘要: How To Install PPTP VPN on CentOS 6.xStep 0 – Login to your server via SSH. You better login as root.Step 1 – Now issue this first command syntax:1yum install -y gitexample:Step 2 – Now also type this command and hit Enter1cd /opt && git clone git://github.com/drewsymo/VPN.gitexample:Step 3 阅读全文
posted @ 2014-03-23 14:44 helpwz 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Mod_GeoIP module is used to get the geographic location of IP address of the visitor into the Apache web server. This module allows you to determine the visitor’s country, organization and location. It is specially useful for Geo Ad Serving, Target Content, Spam Fighting, Fraud Detection, Redirectin 阅读全文
posted @ 2014-03-20 13:53 helpwz 阅读(396) 评论(0) 推荐(0) 编辑
摘要: Apache2的是作为一个CentOS的软件包,因此我们可以直接用下面命令安装它:yum install httpdchkconfig --levels 235 httpd on并启动Apache/etc/init.d/httpd start现在,您的浏览器到http://192.168.0.100,你应该看到Apache2的测试页:Apache的默认文档根目录是在CentOS上的/var/www/html 目录 ,配置文件是/etc/httpd/conf/httpd.conf。配置存储在的/etc/httpd/conf.d/目录。 4.安装PHP5 我们可以用下面的命令来安装PHP5 yu. 阅读全文
posted @ 2014-03-20 00:33 helpwz 阅读(113) 评论(0) 推荐(0) 编辑
摘要: href="http://www.google.com/base2.php?[^"](.\S+)"href="http://www.google.com/base2.php?[^"](*)"参考资料http://www.seowhy.com/article-2309.html 阅读全文
posted @ 2013-01-11 14:41 helpwz 阅读(173) 评论(0) 推荐(0) 编辑
摘要: apt-get install vim首先安装dante——debian下安装东西,就是方便啊。apt-get -y install dante-server装好之后,开始编辑配置文件,默认的配置文件是/etc/dante.conf,这个文件咱先不动。新建一个配置文件,如:vim /etc/1.conf复制进下面配置信息:internal: eth0 port = 1080#internal 表示进口ip设置。这里可以是网卡名,也可以是vps外网ip。port是设置端口,这里端口是1080#如 internal: 109.156.123.123 port = 1080 也是可以的externa 阅读全文
posted @ 2012-12-19 10:22 helpwz 阅读(7547) 评论(0) 推荐(0) 编辑
摘要: 1. 配置 Socks5 编译环境yum -y install gcc automake autoconf libtool make2. 安装 Socks5 必要的包yum -y install pam-devel openldap-devel cyrus-sasl-devel3.下载,编译安装 Socks5到此下载 http://sourceforge.net/projects/ss5/files/http://ss5.sourceforge.net/官方实例http://ss5.sourceforge.net/examples.htm请安装 ss5-3.6.4-3.tar.gz 而不要安装 阅读全文
posted @ 2012-12-18 21:51 helpwz 阅读(698) 评论(0) 推荐(0) 编辑
摘要: 如何知道apache装在哪里?which httpd1、查看系统使用端口并释放端口[root@my_nn_01 WEB-INF]# lsof -w -n -i tcp:80COMMANDPID USERFDTYPE DEVICE SIZE NODE NAMEjava24065 root34uIPv6 269149TCP *:http (LISTEN)[root@my_nn_01 WEB-INF]# kill -9 240652、以KB/MB形式显示文件列表[root@cncloud iso]# ls -lh总计5.8G-rw-r--r-- 1 root root 4.1G 2011-08-01 阅读全文
posted @ 2012-12-18 16:12 helpwz 阅读(7223) 评论(0) 推荐(0) 编辑