更改WordPress主题全局字体

加入以下自定义CSS即可

/*
您可以在此处加入您的CSS。

点击上方的帮助图标来了解更多。
*/

/*字体设定*/
*:not([class*="icon"]):not(i) {
font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif !important;
}

/*字体阴影*/
*{text-shadow: 0.05em 0.05em 0.05em #a9a9a9; }
继续阅读

VPS 常用命令

带宽测试

wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
python speedtest.py --share
python speedtest.py --list
python speedtest.py --share --server 6962

wget -qO- bench.sh | bash
wget http://cachefly.cachefly.net/100mb.test && rm -f 100mb.test

硬盘内存处理器
df -h
free -m
dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync && rm -f test
cat /proc/cpuinfo

继续阅读

nginx SSL Labs A+配置

nginx.conf 加入:

listen 80;
listen 443 ssl http2;
#listen [::]:80;
ssl_certificate /etc/letsencrypt/live/root9000.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/root9000.com/privkey.pem;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
server_name root9000.com www.root9000.com;
index index.html index.htm index.php default.html default.htm default.php;
root  /home/wwwroot/root9000.com;
if ($ssl_protocol = "") { return 301 https://$server_name$request_uri; }

继续阅读