funnymuddy

Shell判断字符串是否含有特定字符

场景:判断字符abcde是否含有字符abc [[ “abcde” =~ “abc” ]] && echo “this is true” || echo “this is not true” if [[ “abcde” =~ “abc” ]]; then echo “this is true” else echo “this is not true”; exit fi

apt vs apt-get

apt 是 apt-get、apt-cache 和 apt-config 中最常用命令选项的集合 apt 命令 取代的命令 命令的功能 apt install apt-get install 安装软件包 apt remove apt-get remove 移除软件包 apt purge apt-get purge 移除软件包及配置文件 apt update apt-get update 刷新存储库… 阅读更多 »apt vs apt-get

页脚添加备案号

方法一:找一个插件来添加页脚,header, footer and injections,增加如下代码片段: <style> a:link { color: #095484; text-decoration: none; } a:visited { color: #095484; text-decoration: none; } a:hover { text-decoration: unde… 阅读更多 »页脚添加备案号

WordPress建站

准备 服务器,托管或者云服务器,本网站运行在阿里云域名,本域名funnymuddy.com在阿里云(万网)申请 架构 Nginx + fastcgi_cache + PHP FPM + WordPress + MySQL 步骤 搭建一个网站还是需要一些步骤的,不如自动化了吧! https://gitee.com/gitmee/wordpress-nginx 安全 TLS test https://… 阅读更多 »WordPress建站