Linux部署typecho

  1. 作者QQ:67065435 QQ群:821635552

  2. 本站内容全部为作者原创,转载请注明出处!

  3. 官方网站

  4. 外观下载

  5. 外观下载

部署typecho

  1. 下载typecho

    cd /www
    wget https://github.com/typecho/typecho/archive/v1.1-17.10.30-release.tar.gz
    tar -zxvf v1.1-17.10.30-release.tar.gz
    mv typecho-1.1-17.10.30-release self_blog
    
  2. 修改nginx配置

    server {
       listen     80;
       server_name blog.xxx.com;
       root      /www/self_blog;
    
       location / {
          index  index.php;
       }
    
       location ~* \.php {
          include             fastcgi_params;
          fastcgi_index        index.php;
          fastcgi_pass         127.0.0.1:9000;
          fastcgi_split_path_info ^(.+\.php)(.*)$;
          fastcgi_param         PATH_INFO $fastcgi_path_info;
          fastcgi_param         SCRIPT_NAME    $fastcgi_script_name;
          fastcgi_param         SCRIPT_FILENAME $document_root$fastcgi_script_name;
       }
    
       location ~ .*\.(js|css|jpg|png|gif|ico|ttf|woff|woff2|svg|mp4)$ {
          expires max;
       }
    }
    
  3. 重载nginx配置

    nginx -t
    nginx -s reload
    

修改typecho外观

  1. 获取typecho外观

    cd /www/self_blog/usr/themes
    wget https://github.com/bhaoo/Cuckoo/archive/1.0.2.tar.gz
    tar -zxvf 1.0.2.tar.gz
    mv Cuckoo-1.0.2 cuckoo
    
  2. 通过后台选择新安装的外观

Copyright © 豆包嘿嘿~ 2012-∞ 冀ICP备17033181号 all right reserved,powered by Gitbook修订: 2020-08-19 14:05:41

results matching ""

    No results matching ""