SEO 网站优化推广 SEO 网站优化推广

升级到MovableType 4.2 Pro

作者:


最后更新于 | 最初发布于 | 分类:


今天花了点时间把本Blog升级到MovableType 4.2 Pro。之前使用的是MovableType 4.14 Personal。

这个4.2 Pro版本是前几天发布的,今天才有时间做了升级。

下面简单介绍一下DavidYin升级系统的过程。
1)备份
最重要的准备工作就是备份,我的备份共有三部分。
备份数据库,是通过phpmyadmin来做的,把整个数据库给备份下来。
备份文章,是通过MovableType自己的Export功能来做的。
备份所有的文件,就是通过SSH登录主机,然后用tar命令把所有的静态文件,包括MT自身的系统文件全部打包压缩,备份下来。
做外这三步,基本上就不会担心之后的升级有错误了,一旦升级失败,可以恢复到原状。

2)升级
升级的方法我是在主机直接操作的。
SSH登录主机;

wget http://www.movabletype.com/downloads/blogger/MT-4.2-en.tar.gz
下载系统;
tar xzvf MT-4.2-en.tar.gz
解压缩;
cd MT-4.2-en
cp -f . ~/your site/mtcgi
覆盖原有的MT系统文件。

然后当登入MT系统时,会提示升级。
mt42-upgrade-1.png
点击"Begin Upgrade"后,会要求输入帐号密码,然后开始升级数据库。

mt42-upgrade-2.png
数据库的升级包括下面这些项目:
* Upgrading database from version 4.0036.
* Upgrading table for MT::Entry::Meta records...
* Upgrading metadata storage for Entries (100%)
* Upgrading table for MT::Asset::Meta records...
* Upgrading metadata storage for Assets (100%)
* Upgrading table for MT::Author::Meta records...
* Upgrading metadata storage for Users (100%)
* Upgrading table for MT::TBPing::Meta records...
* Upgrading table for MT::Category::Meta records...
* Upgrading table for MT::Template::Meta records...
* Upgrading metadata storage for Templates (100%)
* Upgrading table for touch records...
* Upgrading table for MT::Blog::Meta records...
* Upgrading metadata storage for Blogs (100%)
* Upgrading table for MT::Comment::Meta records...
* Upgrading table for Entry records...
* Upgrading table for Asset Placement records...
* Upgrading table for Archive Mapping records...
* Upgrading table for User records...
* Upgrading table for User records...
* Upgrading table for Field records...
* Upgrading table for Template records...
* Upgrading table for Entry records...
* Upgrading table for Category Placement records...
* Upgrading table for Asset records...
* Upgrading table for Asset Placement records...
* Upgrading table for User records...
* Upgrading table for Tag records...
* Upgrading table for TrackBack records...
* Upgrading table for Category records...
* Upgrading table for fileinfo records...
* Upgrading table for Object Score records...
* Upgrading table for Job Error records...
* Upgrading table for Job records...
* Upgrading table for Tag Placement records...
* Upgrading table for Comment records...
* Upgrading table for Contact records...
* Creating new template: 'Userpic'.
* Creating new template: 'Search'.
* Creating new template: 'New entry notification'.
* Creating new template: 'Registration Form'.
* Creating new template: 'Status Message'.
* Creating new template: 'GlobalJavaScript'.
* Creating new template: 'Footer'.
* Creating new template: 'Profile Error'.
* Creating new template: 'Registration Confirmation'.
* Creating new template: 'Login Form'.
* Creating new template: 'Simple Header'.
* Creating new template: 'Form Field'.
* Creating new template: 'Password Reset Form'.
* Creating new template: 'Profile Edit Form'.
* Creating new template: 'Registration notification'.
* Creating new template: 'Email verification'.
* Creating new template: 'Sign In'.
* Creating new template: 'Profile View'.
* Creating new template: 'Navigation'.
* Creating new template: 'Profile Feed'.
* Creating new template: 'Simple Footer'.
* Creating new template: 'Header'.
* Assigning junk status for TrackBacks... (100%)
* Assigning junk status for comments... (100%)
* Moving metadata storage for categories...
* Moving metadata storage for categories...
* Removing unnecessary indexes...
* Assigning embedded flag to asset placements... (100%)
* Assigning author basename... (100%)
* Replacing file formats to use CategoryLabel tag... (100%)
* Updating template build types... (100%)
* Assigning entry comment and TrackBack counts... (100%)
* Assigning all permissions to blog administrator... (100%)
* Recover permissions of system administrators... (100%)
* Database has been upgraded to version 4.0067.
* Plugin 'Professional Pack' upgraded successfully to version 1.2 (schema version 1.2).
* Plugin 'Community Pack' installed successfully.

点击"Return to Movable Type",进入MovableType系统主界面。
mt42-upgrade-3.png

至此,系统升级完成了。

3)重建模板
我是首先应用系统自身的模板,以替换原有的模板,同时备份原来的模板。
之后再一点点的修改,做到同原来的样子一样。目前还没有计划重做模板。

其实最先的第一第二步,我只花了大约15分钟,可是之后的重建模板却用了约1个小时。

最后重建所有的单页归档文件,用时13分10秒。


分享:
Share on Facebook Share on Twitter

搜索
关于
David Yin
研究(SEO)搜索引擎优化排名和(PPC)竞价排名技术,总结搜索营销学的各种方法和趋势。专业SEO优化研究,致力于搜索引擎优化技术的普及和推广。
David Yin
Email:seo[AT]g2soft.net
版权说明
如果想转载,而又不明白转载的条件,请看本站的详细版权说明
推荐
Dreamhost Hosting
使用优惠码“save252015”,节省更多,每月只要 $2.59。
标签云
热门标签