FastCGI模式下PHP占用大量内存的解决办法
PHP_FCGI_MAX_REQUESTS, to cause worker children to exit after that many requests.
解决这个问题的办法是在web服务器配置中降低PHP_FCGI_MAX_REQUESTS的值。这个参数决定了一个php-cgi进程被创建出来之后,最多接受的PHP请求数,如果配置是10000。php...
centos 安装 pentbox 1.5 奇技
wget http://ncu.dl.sourceforge.net/project/pentbox/1.5/pentbox-1.5.tar
tar xvf pentbox-1.5.tar
cd pentbox-1.5
yum install ruby
./pentbox.rb
And here we go! Here is the new version...
安装webmin&virtualmin
以debain6 为例安装webmin及其虚拟主机控制模块virtualmin
——————下载安装webmin——————
Debian package suitable for Debian, Ubuntu or...
nginx https强制跳转到http
由于某种原因不再使用ssl链接,使原有的https索引跳转到http
server
{
listen 443;
server_name zephyrxt.com www.zephyrxt.com ;
index index.html index.htm index.php default.html ...
清理优化Mysql日志
du -h --max-depth=1 /usr/local/mysql/var #查看日志占用情况
/usr/local/mysql/bin/mysql -u root -p # 登录mysql 输入密码
reset master; #成功登录后,运行清理命令
/q #退出
du -h --max-...
安装(D)DoS Deflate
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
查看链接数:如果一个IP的链接数在几个~几十之间属于正常,如果几百就显然有问题
————————&...
wordpress安装插件
Advertising Manager
Control and arrange your Advertising and Referral blocks on your Wordpress blog. With Widget and inline post support, integration with all major ad netw...
优化VPS内存
优化openvz 内存
修改/etc/security/limits.confwww-data hard stack 256
修改/etc/pam.d/common-sessionsession required pam_limits.so
In CentOS the file to edit would be /etc/pam.d/system-auth
...
更新下K30S的欧版rom https...
F12-F5(刷新网页)-网络-head...
# Pull the latest ve...
mkdir ~/.davfs2/ ec...
youtube-dl -f best -...
数据库脚本 Cloudreve 内置了...
apt-get install davf...
#!/bin/bash #/usr...
On your device, go i...
# Pull the latest ve...