Problems encountered during installation typecho

In addition to accessing the home page are 404

        #配置Nginx通过fastcgi方式处理您的PHP请求
        location ~ .php$ {
            fastcgi_pass 127.0.0.1:9000; #Nginx通过本机的9000端口将PHP请求转发给PHP-FPM进行处理。
            fastcgi_index index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include fastcgi_params;  #Nginx调用fastcgi接口处理PHP请求
            include fastcgi.conf;
            fastcgi_intercept_errors on;
        }

        #typecho配置
          location / {
                try_files $uri $uri/ /index.php?$query_string;
        }

Prompt can not connect to the database

Here Insert Picture Description

1 may not be called in advance to create a database of typecho
to create enough

2 may be the problem database addresses
beginning thought it was not granted permission to mysql users to connect remotely, and later found to, and tried again to localhost instead of 127.0.0.1 on the success of the
reason :
probably in mysql, and 127.0 localhost .0.1 two distinct host is
localhost socket connection is used, and 127.0.0.1 is tcp / ip connections.
The default with the localhost, if the socket path php.ini configuration of the error will not find
it here directly into 127.0.0.1 was successful

Published 48 original articles · won praise 56 · views 20000 +

Guess you like

Origin blog.csdn.net/zhetmdoubeizhanyong/article/details/100055522