Setting Up a Blog with Typecho
Typecho is the best choice for a minimalist blog.
First you need a server and a domain bound to it. The server also needs PHP, MySQL, and nginx/Apache downloaded and configured. Here I chose lnmp for a one-click install.
1. Connect to the server over ssh and run the following as the root user:
screen -S lnmpThis keeps the download from being cut off if the ssh connection drops, by running the task in the background.
2. Inside the screen session, run the command below to download and install in one step. Press CTRL+A+D to detach:
wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp3. lnmp configuration:
Once the download finishes, start the configuration. This binds the domain, creates the database, sets the site's root directory, and so on:
lnmp vhost add4. Install Typecho
wget http://typecho.org/downloads/1.1-17.10.30-release.tar.gzExtracting the archive gives a build directory. Move all the files in it into the site's root directory (by default /home/wwwroot/domain, where domain is your actual domain).
5. Blog configuration
After the installation above, enter your domain in the browser and you will be taken to the Typecho setup page, where you can configure your blog. Under "Permalink settings", select "Enable URL rewriting" to remove index.php from page URLs.
6. Data backup
Typecho data has to be backed up manually on a regular basis. Export the MySQL data on the server:
mysqldump -u root -p typecho > typecho.sqlSave the SQL file to your own machine. When you need to restore the data, run this command to import it into MySQL:
mysql -u root -p typecho < backup.sql
5 comments
Leave a Comment
- Previous: None
- Next: Hyperledger Fabric Basics
这篇搭建流程写得还挺清楚的,尤其是从 ssh、screen 到 lnmp 一条龙下来,对新手很友好。我之前搭 WordPress 也是用 lnmp,一键包确实省了很多坑,不过版本兼容有时候要自己多盯一眼。Typecho 轻量这一点挺吸引人的,感觉用来写技术博客比 WP 清爽多了。后面“永久链接设置”这一块如果能再展开讲讲,比如伪静态配置、对 SEO 的一些影响之类的,就更完整了。
ok,已经搞好,感谢
美男子朱男前来催更,要是能分享些心灵鸡汤就更好了
你的键盘是摸了蜜吧,写的博客真么甜
学习了