检测结果:OK!
正在安装依赖的软件......
apt -qq update
184 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt -y -qq install curl libnss3 xz-utils lsof unzip
lsof is already the newest version.
xz-utils is already the newest version.
curl is already the newest version.
libnss3 is already the newest version.
unzip is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
检测结果:未被占用!
系统环境检测完毕,符合安装要求,开始布署......
开启防火墙相应端口......
正在安装Caddy.....
echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" | tee -a /etc/apt/sources.list.d/caddy-fury.list
deb [trusted=yes] https://apt.fury.io/caddy/ /
apt install -y apt-transport-https
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
apt -qq update
184 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt -y -qq install caddy
caddy is already the newest version.
The following packages were automatically installed and are no longer required:
libuuid-perl linux-base
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
等待很久也一直在这页面正在登录远程主机...... 主机登录成功! 检测是否运行在root权限下... id -u 0
检测结果:OK! 检测系统是否已经安装Caddy...... find / -name caddy /usr/share/caddy /usr/bin/caddy /root/caddy /etc/bash_completion.d/caddy /etc/caddy /var/lib/caddy
请先行卸载Caddy或重装VPS系统! 检测系统是否符合安装要求...... uname -m x86_64
command -v apt /usr/bin/apt
command -v dnf
command -v yum
command -v zypper
command -v systemctl /bin/systemctl
command -v getenforce
检测结果:OK! 正在安装依赖的软件...... apt -qq update 184 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt -y -qq install curl libnss3 xz-utils lsof unzip lsof is already the newest version. xz-utils is already the newest version. curl is already the newest version. libnss3 is already the newest version. unzip is already the newest version. The following packages were automatically installed and are no longer required: libuuid-perl linux-base Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
安装完毕!OK! 正在检测域名是否解析到当前VPS的IP上...... curl -4 ip.sb 107.x.x.x
ping xxxxx -c 1 | grep -oE -m1 "([0-9]{1,3}.){3}[0-9]{1,3}" 107.x.x.x
解析正确!OK! 检测端口占用情况...... lsof -n -P -i :80 | grep LISTEN
lsof -n -P -i :443 | grep LISTEN
检测结果:未被占用! 系统环境检测完毕,符合安装要求,开始布署...... 开启防火墙相应端口...... 正在安装Caddy..... echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" | tee -a /etc/apt/sources.list.d/caddy-fury.list deb [trusted=yes] https://apt.fury.io/caddy/ /
apt install -y apt-transport-https Reading package lists... Building dependency tree... Reading state information... apt-transport-https is already the newest version. The following packages were automatically installed and are no longer required: libuuid-perl linux-base Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
apt -qq update 184 packages can be upgraded. Run 'apt list --upgradable' to see them.
apt -y -qq install caddy caddy is already the newest version. The following packages were automatically installed and are no longer required: libuuid-perl linux-base Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 184 not upgraded.
find / -name caddy /usr/share/caddy /usr/bin/caddy /root/caddy /etc/bash_completion.d/caddy /etc/caddy /var/lib/caddy
Caddy安装成功! systemctl enable caddy
正在为NaiveProxy升级服务端 curl -o /tmp/caddy.zip https://raw.githubusercontent.com/proxysu/Resources/master/Caddy2/caddy20200816.zip
unzip /tmp/caddy.zip
然后就没下文了。