Linux部署typecho
部署typecho
下载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
修改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; } }
重载nginx配置
nginx -t nginx -s reload
修改typecho外观
获取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
通过后台选择新安装的外观