【今日观点】 .htaccess 301 强制https
RewriteEngine onRewriteBase /RewriteCond %{SERVER_PORT} !^443$RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R...
RewriteEngine onRewriteBase /RewriteCond %{SERVER_PORT} !^443$RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R...
安装google的安装google-perftools:里面包含Tcmalloc 注意如果你的系统是64位的请先安装libunwind库,32位操作系统不要安装。libunwind库为基于64位CPU和操作系统的程序提供了基本的堆栈辗转开解...
php.ini 里面short_open_tag 改成on 就行了
禁止apache组里的用户调用perl chgrp apache /usr/bin/perl chmod 705 /usr/bin/perl 转自http://baiqiuyi.com
旧域名1.com做301跳转到新域名2.com : RewriteEngine on RewriteCond %{HTTP_HOST} ^www.1.com$ [OR] RewriteCond %{HTTP_HOST} ^1.com$ Re...
/scripts/suspendacct ****
有时候为了性能,我们会禁止很多的ftp链接。以Proftp为例。 MaxInstances 50 MaxClients 200 MaxClientsPerHost 50 MaxClientsPerUser 50 M...
whm里面 Services Configuration >> Apache Configuration >> Include Editor >> Post VirtualHost Inclu...
导出 mysqldump -u root -p --all-databases > all_backup.sql 导入 mysql -u root -p wordpress < wp_backup.sql
静态方法 注意:所有操作均使用root用户 修改ip: 编辑文件/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 //设备名称,不要修改 BOOTPROTO=static //不要修...
vi 502.sh(不懂vi的可以百度下) 在脚本中 #!/bin/bash MY_URL="站点链接" ...