WordPress优化后台动静态分离
Vim -
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
WordPress优化后台动静态分离
Vim -
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
Make it modern
Latest Reviews
WordPress优化后台动静态分离
Vim -
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
Debian 10 初始化安装
安装vim
apt install vim
2.修改sshd_config
sed -i 's PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
重启sshd
systemctl restart sshd
3.查询内核版本
dpkg -l | grep linux-image
4.移除内核
apt purge linux-image-4.19.0-13-amd64 linux-image-4.19.0-8-amd64 linux-image-amd64
5.更新grub
update-grub
6.下载kernel
//kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.10/
7.安装内核
dpkg -i linux-headers-5.10.10-051010_5.10.10-0linux-headers-5.10.10-051010-generic_5.10.10-051010.202101231639_amd64.deb51010.202101231639_all.deb
dpkg -i...
shell中单引号和双引号区别
'' 简称单引号,在shell中表示原样输出,不解析特殊字符:例如
echo 'Hello Word ' ---> 输出结果如下:
Hello Word
"" 简称双引号 在shell中可以解析特殊字符 例如:
root@VPS:~# echo "Hello World "------> 输出结果 已经被转义
>
Performance Training
WordPress优化后台动静态分离
Vim -
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
Debian 10 初始化安装
Vim -
安装vim
apt install vim
2.修改sshd_config
sed -i 's PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
重启sshd
systemctl restart sshd
3.查询内核版本
dpkg -l | grep linux-image
4.移除内核
apt purge linux-image-4.19.0-13-amd64 linux-image-4.19.0-8-amd64 linux-image-amd64
5.更新grub
update-grub
6.下载kernel
//kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.10/
7.安装内核
dpkg -i linux-headers-5.10.10-051010_5.10.10-0linux-headers-5.10.10-051010-generic_5.10.10-051010.202101231639_amd64.deb51010.202101231639_all.deb
dpkg -i...
shell中单引号和双引号区别
Vim -
'' 简称单引号,在shell中表示原样输出,不解析特殊字符:例如
echo 'Hello Word ' ---> 输出结果如下:
Hello Word
"" 简称双引号 在shell中可以解析特殊字符 例如:
root@VPS:~# echo "Hello World "------> 输出结果 已经被转义
>
如何查询nginx Max open files
Vim -
root@VPS:~# ps aux | grep nginx |grep -v grep |awk '{print $2}'
3323
13582
13583
13584
root@VPS:~# cat /proc/3323/limits | grep 'Max open files'
Max open files 1024000 1024000 files
写个shell
#!/bin/bash
for...
如何让Linux记录历史命令
Vim -
USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's///g'`
HISTTIMEFORMAT="%F %T ${USER_IP} ` whoami` "
HISTFILESIZE=1024000
HISTSIZE=1024000
source .bashrc
Holiday Recipes
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
WRC Racing
Debian 10 初始化安装
安装vim
apt install vim
2.修改sshd_config
sed -i 's PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
重启sshd
systemctl restart sshd
3.查询内核版本
dpkg -l | grep linux-image
4.移除内核
apt purge linux-image-4.19.0-13-amd64 linux-image-4.19.0-8-amd64 linux-image-amd64
5.更新grub
update-grub
6.下载kernel
//kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.10/
7.安装内核
dpkg -i linux-headers-5.10.10-051010_5.10.10-0linux-headers-5.10.10-051010-generic_5.10.10-051010.202101231639_amd64.deb51010.202101231639_all.deb
dpkg -i...
shell中单引号和双引号区别
'' 简称单引号,在shell中表示原样输出,不解析特殊字符:例如
echo 'Hello Word ' ---> 输出结果如下:
Hello Word
"" 简称双引号 在shell中可以解析特殊字符 例如:
root@VPS:~# echo "Hello World "------> 输出结果 已经被转义
>
如何查询nginx Max open files
root@VPS:~# ps aux | grep nginx |grep -v grep |awk '{print $2}'
3323
13582
13583
13584
root@VPS:~# cat /proc/3323/limits | grep 'Max open files'
Max open files 1024000 1024000 files
写个shell
#!/bin/bash
for...
Health & Fitness
Debian 10 初始化安装
安装vim
apt install vim
2.修改sshd_config
sed -i 's PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
重启sshd
systemctl restart sshd
3.查询内核版本
dpkg -l | grep linux-image
4.移除内核
apt purge linux-image-4.19.0-13-amd64 linux-image-4.19.0-8-amd64 linux-image-amd64
5.更新grub
update-grub
6.下载kernel
//kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.10/
7.安装内核
dpkg -i linux-headers-5.10.10-051010_5.10.10-0linux-headers-5.10.10-051010-generic_5.10.10-051010.202101231639_amd64.deb51010.202101231639_all.deb
dpkg -i...
shell中单引号和双引号区别
'' 简称单引号,在shell中表示原样输出,不解析特殊字符:例如
echo 'Hello Word ' ---> 输出结果如下:
Hello Word
"" 简称双引号 在shell中可以解析特殊字符 例如:
root@VPS:~# echo "Hello World "------> 输出结果 已经被转义
>
如何查询nginx Max open files
root@VPS:~# ps aux | grep nginx |grep -v grep |awk '{print $2}'
3323
13582
13583
13584
root@VPS:~# cat /proc/3323/limits | grep 'Max open files'
Max open files 1024000 1024000 files
写个shell
#!/bin/bash
for...
Architecture
LATEST ARTICLES
WordPress优化后台动静态分离
Vim -
0x01 简介
Wordpress是一款非常强大的资源博客发布程序,正因为Wordpress程序强大也有一些有问题,比如:wordpress后台加载速度慢等问题,所以,我们要改善这些问题才有这篇文章.
0x02 推荐插件
wp-china-Yes是一款非常棒的后台加速插件,它可以让wordpess后台静态资源全部走CDN,比如:js,css,png,jpg,gif等.大家自行百度一下下载该插件,在这里非常感谢wp-china-yes作者写出非常棒的插件.
0x03 修改代码 if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') && !stristr($GLOBALS, 'beta')) {
$this->page_str_replace('preg_replace', )
], get_option('super_admin'));
}
}
修改为自己的CDN地址
if (get_option('super_admin') != 2 && !stristr($GLOBALS, 'alpha') &&...
Debian 10 初始化安装
Vim -
安装vim
apt install vim
2.修改sshd_config
sed -i 's PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/g' /etc/ssh/sshd_config
重启sshd
systemctl restart sshd
3.查询内核版本
dpkg -l | grep linux-image
4.移除内核
apt purge linux-image-4.19.0-13-amd64 linux-image-4.19.0-8-amd64 linux-image-amd64
5.更新grub
update-grub
6.下载kernel
//kernel.ubuntu.com/~kernel-ppa/mainline/v5.10.10/
7.安装内核
dpkg -i linux-headers-5.10.10-051010_5.10.10-0linux-headers-5.10.10-051010-generic_5.10.10-051010.202101231639_amd64.deb51010.202101231639_all.deb
dpkg -i...
shell中单引号和双引号区别
Vim -
'' 简称单引号,在shell中表示原样输出,不解析特殊字符:例如
echo 'Hello Word ' ---> 输出结果如下:
Hello Word
"" 简称双引号 在shell中可以解析特殊字符 例如:
root@VPS:~# echo "Hello World "------> 输出结果 已经被转义
>
如何查询nginx Max open files
Vim -
root@VPS:~# ps aux | grep nginx |grep -v grep |awk '{print $2}'
3323
13582
13583
13584
root@VPS:~# cat /proc/3323/limits | grep 'Max open files'
Max open files 1024000 1024000 files
写个shell
#!/bin/bash
for...
如何让Linux记录历史命令
Vim -
USER_IP=`who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's///g'`
HISTTIMEFORMAT="%F %T ${USER_IP} ` whoami` "
HISTFILESIZE=1024000
HISTSIZE=1024000
source .bashrc
Shell下的通配符
Vim -
* :代表0个或无穷个多个任意字符
例如:
root@VPS:~/patch# ls *
bypass.list Enable_BoringSSL_OCSP.patch nginx.patch nginx_with_spdy.patch README.md
dropbox_fs_fix.patch LICENSE nginx_with_quic.patch nginx_with_spdy_quic.patch use_openssl_md5_sha1.patch
?:代表一定是一个任意字符
:代表里匹配非任意字符:例如:有可能有a,b,c字符之一
:代表编码顺序呢所有字符.例如, 代表0到9之间的所有数字,因为数字的编码是连续的. 代表反向选择,例如代表一定有一个字符,只要是非a.b,c的其他字符即可
如何在线获取Nginx版本
Vim -
curl -s nginx.org/en/CHANGES | grep -E 'Changes with nginx' |head -1 |awk '{print $4}'
Recent Comments