Created
May 9, 2020 06:17
-
-
Save kikohz/b4bb69d750344db678c9bd0a308c116c to your computer and use it in GitHub Desktop.
caddy 用法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.moerats.com/archives/404/ | |
安装 | |
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh | |
#备用地址 | |
wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && chmod +x caddy_install.sh && bash caddy_install.sh | |
卸载 | |
wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/caddy_install.sh && bash caddy_install.sh uninstall | |
#备用地址 | |
wget -N --no-check-certificate https://www.moerats.com/usr/shell/Caddy/caddy_install.sh && bash caddy_install.sh uninstall | |
启动:/etc/init.d/caddy start | |
停止:/etc/init.d/caddy stop | |
重启:/etc/init.d/caddy restart | |
查看状态:/etc/init.d/caddy status | |
查看Caddy启动日志:tail -f /tmp/caddy.log | |
安装目录:/usr/local/caddy | |
Caddy配置文件位置:/usr/local/caddy/Caddyfile | |
Caddy自动申请SSL证书位置:/.caddy/acme/acme-v01.api.letsencrypt.org/sites/xxx.xxx(域名)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment