搭建NextCloud(LEMP环境)

系统为Debian12,LEMP环境指Linux,Nginx, MariaDB, PHP-FPM 1.更新软件包,安装Nginx, MariaDB, PHP-FPM sudo apt update && sudo apt upgrade -y sudo apt-get install -y nginx-extras mariadb-server mariadb-client php-common php-cli php-cgi php-fpm php-opcache php-mysql php-xml php-xmlrpc php-gd php-json php-curl php-zip php-mbstring php-bz2 php-intl php-bcmath php-gmp imagemagick...

搭建基于WireGuard的VPN

系统为debian bookworm 1方便起见切换到root用户 sudo su 2.安装WireGuard apt update && apt install wireguard wireguard-tools openresolv -y 3.服务器需要开启ipv4转发 echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf && sysctl -p /etc/sysctl.conf 4.生成私钥与公钥,默认的配置文件夹储存在/etc/wireguard目录 cd /etc/wireguard...

Windows下使用WSL2编译openwrt固件(lean)

1.安装WSL windows系统启用WSL功能(Home edition无法启用) windows10(版本号至少1903)或windows11系统,以管理员身份运行powershell,输入 dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart 安装wsl wsl --install -d Ubuntu...

安装Cloudflared作为DNS over https客户端

1.下载cloudflared deb包并安装 wget && sudo dpkg -i cloudflared-linux-amd64.deb 2.创建配置文件 sudo mkdir -p /etc/cloudflared sudo cat << EOF > /etc/cloudflared/config.yml proxy-dns: true proxy-dns-upstream: - - https://1.0.0.1/dns-query EOF sudo touch /etc/cloudflared/cert.pem 3.创建systemd文件 sudo cloudflared service install --legacy sudo systemctl start...
Posted in DNS

搭建WordPress(LAMP环境)

1.LAMP环境安装 本例中系统Debian11 sudo apt update && sudo apt upgrade sudo apt install -y apache2 apache2-utils mariadb-server mariadb-client php7.4 php7.4-fpm libapache2-mod-php7.4 php7.4-mysql php7.4-mbstring php7.4-cli php7.4-xml php7.4-common php7.4-gd php7.4-bcmath php7.4-json php7.4-opcache php7.4-readline php7.4-curl php7.4-zip unzip 运行MariaDB前首次配置 sudo...

acme.sh签发RSA+ECC通配符证书

一,ECC+RSA双证书的签发 1.下载安装acme.sh wget -O - | sh 2. 取得Cloudflare API 参见Cloudflare官方说明,这里我们接下来使用的是 Global API Key 3.签发ECC和RSA双证书 export CF_Key="yourCFkey"export CF_Email="youremail@youremail.com" 签发ECC证书,其中ec-256可以更换为ec-384 ./acme.sh --issue --dns dns_cf -d yourdomain.com -d *.yourdomain.com -k ec-256...

搭建WordPress(LEMP环境)

LEMP环境的安装 1.LEMP环境指 Linux, Nginx, MariaDB或者MySQL 以及 PHP,本例中系统Debian 10 2.更新软件包 sudo apt update && sudo apt upgrade 3.安装Nginx,MariaDB,php7.3 sudo apt install -y nginx-extras mariadb-server mariadb-client php7.3 php7.3-fpm php7.3-mysql php-common php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline 4....