• 如果您有任何疑问或者需要投稿请联系站长,感谢您的访问

  • 如果您有任何问题或者建议可以联系站长,QQ403593407

Debian系统一键安装 Caddy+PHP7+Sqlite3 脚本

建站资源 admin 1年前 (2018-09-30) 457次浏览 0个评论

是一个 Debian 系统下一键安装 Caddy+PHP7+Sqlite3 建站环境的脚本,最低测试可以在 64M 小内存 VPS 上通过,可谓非常给力了。如果你有小内存 VPS 或者想体验下的都可以试试。

脚本特性

  • 小内存VPS一键安装CaddyPHP7Sqlite3环境(支持VPS最小内存64M)。
  • 一键绑定域名自动生成SSL证书开启httpsssl自动续期)。
  • 支持IPv6AAAA记录)如果本地网络不支持IPv6可以通过cloudflare CDN转换为IP4
  • 一键安装TpechoWordPressZblogKodexplorerLaverna、一键整站备份。
  • 一键安装V2ra*Rinetdbbr

安装

Github 地址:https://github.com/dylanbai8/Onekey_Caddy_PHP7_Sqlite3

支持系统:Debian 89。如果你内存实在太小,建议使用mini系统。且使用前请提前解析好域名,不然签发SSL会失败。

1、下载脚本

<span class="pln">wget </span><span class="pun">-</span><span class="pln">N </span><span class="pun">--</span><span class="kwd">no</span><span class="pun">-</span><span class="pln">check</span><span class="pun">-</span><span class="pln">certificate git</span><span class="pun">.</span><span class="pln">io</span><span class="pun">/</span><span class="pln">c</span><span class="pun">.</span><span class="pln">sh</span>

如果你是Debian 9,则需要先编辑脚本,删掉以下2行代码:

<span class="com">#添加源</span><span class="pln">
echo </span><span class="str">"deb http://packages.dotdeb.org jessie all"</span> <span class="pun">|</span><span class="pln"> tee </span><span class="pun">--</span><span class="pln">append </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">apt</span><span class="pun">/</span><span class="pln">sources</span><span class="pun">.</span><span class="pln">list
echo </span><span class="str">"deb-src http://packages.dotdeb.org jessie all"</span> <span class="pun">|</span><span class="pln"> tee </span><span class="pun">--</span><span class="pln">append </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">apt</span><span class="pun">/</span><span class="pln">sources</span><span class="pun">.</span><span class="pln">list</span>

2、安装脚本

<span class="pln">chmod </span><span class="pun">+</span><span class="pln">x c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">&&</span><span class="pln"> bash c</span><span class="pun">.</span><span class="pln">sh</span>

此时会很快的给你安装好CaddyPHP7Sqlite3环境。

程序安装

安装好环境后,再使用以下命令安装所需要的程序。

<span class="com">#一键安装 typecho 博客</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">t

</span><span class="com">#一键安装 wordpress 博客</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">w

</span><span class="com">#一键安装 zblog 博客</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">z

</span><span class="com">#一键安装 kodexplorer 可道云</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">k

</span><span class="com">#一键安装 laverna 印象笔记</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">l

</span><span class="com">#一键整站备份(一键打包/www 网站目录、含数据库)</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">a

</span><span class="com">#一键安装 v2ra*</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">v

</span><span class="com">#一键安装 rinetd bbr 端口加速</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">b</span>

程序卸载

<span class="com">#卸载</span><span class="com">caddy</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">unc

</span><span class="com">#卸载 php+sqlite</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">unp

</span><span class="com">#卸载 v2ra*</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">unv

</span><span class="com">#卸载 rinetdbbr</span><span class="pln">
bash c</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">-</span><span class="pln">unb</span>

相关命令/目录

<span class="pun">启动:/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">init</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">caddy</span><span class="pln"> start
</span><span class="pun">停止:/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">init</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">caddy stop
</span><span class="pun">重启:/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">init</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">caddy restart

</span><span class="pun">查看状态:/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">init</span><span class="pun">.</span><span class="pln">d</span><span class="pun">/</span><span class="pln">caddy status
</span><span class="pun">查看</span><span class="typ">Caddy</span><span class="pun">启动日志:</span><span class="pln">tail </span><span class="pun">-</span><span class="pln">f </span><span class="pun">/</span><span class="pln">tmp</span><span class="pun">/</span><span class="pln">caddy</span><span class="pun">.</span><span class="pln">log

</span><span class="typ">Caddy</span><span class="pun">安装目录:/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">caddy
</span><span class="typ">Caddy</span><span class="pun">配置文件位置:/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">caddy</span><span class="pun">/</span><span class="typ">Caddyfile</span>

<span class="pun">网站目录:/</span><span class="pln">www</span>
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址