搭建这个type程序,经历了几种错误.历时两天,查找各方资料,终于完美解决
1.nginx提示502错误

解决办法:修改网站nginx配置文件中fastcgi_pass unix:/tmp/php-cgi.sock;

2.安装typecho时提示数据库错误

解决办法:先建立好数据库,然后在安装

3.登录后台提示Access denied.

解决办法:在网站nginx配置文件中添加include pathinfo.conf;

部分效果如下:

location ~ .*\.php(\/.*)*$ {
    include fastcgi.conf;
    include pathinfo.conf;
    fastcgi_pass unix:/tmp/php-cgi.sock;
}