Typecho博客安装日志
环境配置
Linux - CentOS (final) 6.10 x64
PHP Version 5.6.40
NGINX Version 1.14.2
MYSQL Version 5.6.43
前置环境
扩展支持 CURL Socket mbstring iconv
数据库blog
blog.zhoucx6.com Nginx rewrite 配置
server {
listen 80;
server_name blog.zhoucx6.com;
access_log off;
index index.html index.htm index.php;
root /data/wwwroot/blog;
include /usr/local/nginx/conf/rewrite/none.conf;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ .*\.php(\/.*)*$ {
fastcgi_pass unix:/dev/shm/php-cgi.sock;
include fastcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
}
安装 Typecho
登陆 Centos6 服务器
cd /data/wwwroot/
wget http://typecho.org/downloads/1.1-17.10.30-release.tar.gz
tar -xvf 1.1-17.10.30-release.tar.gz
mv build blog
chown -R www.www blog
浏览器访问 http://blog.zhoucx6.com,填写已数据库信息即可完成安装。
使用 ICARUS 主题
cd /data/wwwroot/blog
wget https://github.com/keroliang/typecho-theme-icarus/archive/v1.1.4.zip
unzip typecho-theme-icarus
mv typecho-theme-icarus-1.1.4 usr/themes/icarus
控制台-外观-启用 icarus
主题