沉默的博客 - 折腾
type: channel
link: https://cmsblog.cn/tag/%E6%8A%98%E8%85%BE/
items: 64M小内存成功安装Apline+Caddy+PHP8+Sqlite3+typecho

64M小内存成功安装Apline+Caddy+PHP8+Sqlite3+typecho
type: item
date: 2022-11-18T08:54:00+08:00
description: 接上文，继续折腾64M的小鸡。大点内存就不放静态网站了，搭个typecho吧。一、后台系统重装为Apline3.15版本，结果SSH不上了，老是拒绝密码。只能VNC进去，编辑vi /etc/ssh/sshd_config 修改 PermitRootLogin yes如果没有这个文件，先安装SSHapk add opensshrc-update add sshd/etc/init.d/sshd start 连接SSH后，编辑 vi /etc/resolv.conf 修改nameserver 2a03:7900:2:0:31:3:104:161二、安装PHP8apk add php8 php8-fpm php8-opcache php8-ctype php8-pdo_sqlite php8-session php8-curl php8-pdo_pgsql php8-sqlite3 php8-mbstring三、安装Caddy2apk add caddy四、配置网站vi /etc/caddy/Caddyfile64m.513513.xyz { root * /www encode gzip php_fastcgi localhost:9000 file_server }五、启动caddy php8rc-service caddy restart rc-service php8-fpm restart六、安装typecho七、探针：https://64m.513513.xyz/tz.php感想：目前伪静态没解决。速度个人觉得还能接受。