typecho比wordpress更轻,更专注于写的享受。
现在大多的虚拟机运行环境都是lnmp,安装教程安装typecho可能会遇到404,数据配置错误问题。
把这两天安装typecho的步骤写下来给大家参考.
typecho安装方法
1.下载
#网站目录cd /usr/local/nginx/html/wget https://github.com/typecho/typecho/releases/download/v0.9-13.12.12-release/0.9.13.12.12.-release.tar.gz -O typecho.tar.gztart -zxvf typecho.tar.gz这样typecho的源代码放到了/usr/local/nginx/html/build
2.配置nginx的虚拟机(修改; root /home/yourdomain/www/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location ~ .*\.php(\/.*)*$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; } access_log logs/yourdomain.log combined; }
:!:注意把以上配置中的yourdomain换成你自己的实际域名和实际目录存放地址