proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« [公告] *.ipchina.org 域名系统调整 庆祝开放两周年 新买了 windtear.net | Main | 新 blog http://windtear.net »

December 15, 2004

blog 系统 MT - Movable Type (2)

版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。
https://windtear.net/archives/2004/12/15/000435.html

blog 系统 MT - Movable Type

1. 安装配置
mkdir windtear
cd windtear
tar zxvf /MT-3.121.tar.gz
mv MT-3.121-full-en_us cgi-bin
cd cgi-bin
mv images/ docs/ styles.css mt.js ../

vi mt.cfg
进行配置
CGIPath http:// /cgi-bin/
#DataSource ./db

ObjectDriver DBI::mysql
Database mt
DBUser mt
DBHost localhost

EmailAddressMain windtear@ipcn.org

StaticWebPath /

#PublishCharset utf-8
PublishCharset gb2312

2. mysql
create database mt;
grant all on mt.* to mt@localhost identified by 'secret';
vi mt-db-pass.cgi
写上密码 secret

3. 初始化
http:// /cgi-bin/mt-load.cgi
删除 mt-load.cgi

4. 登录配置
http:// /cgi-bin/mt.cgi
Melody/Nelson

Edit your profile
改名 改密码 email URL

5.
/cgi-bin/mt.cgi?__mode=menu&blog_id=1
修改 Weblog config

Core Setup
名字 URL 目录 归档 目录 时区

Core Setup | Preferences | Archive Files | IP Banning
设置评论等好多东西

6. 归档
<$MTEntryDate format="%Y/%m/%d/"$><$MTEntryID pad="1"$>.html

7. 导入 import
<Blogger>
TITLE: title 标题
AUTHOR: windtear
DATE: 12/15/2004 10:36:05 PM
-----
BODY:
正文
测试
<a href="http://ipcn.org">ipcn.org</a>
</Blogger>

8. 注意
gb2312
归档设置

9. 清空
mysql> show tables;
+-----------------+
| Tables_in_mt |
+-----------------+
| mt_author |
| mt_blog |
| mt_category |
| mt_comment |
| mt_entry |
| mt_fileinfo |
| mt_ipbanlist |
| mt_log |
| mt_notification |
| mt_permission |
| mt_placement |
| mt_plugindata |
| mt_session |
| mt_tbping |
| mt_template |
| mt_templatemap |
| mt_trackback |
+-----------------+
17 rows in set (0.00 sec)

select * from mt_author;
select * from mt_blog;
select * from mt_category;
select * from mt_permission;
select * from mt_session;
select * from mt_template;
select * from mt_templatemap;


select * from mt_trackback;
select * from mt_placement;
select * from mt_entry;
select * from mt_fileinfo;


delete from mt_trackback;
delete from mt_placement;
delete from mt_entry;
delete from mt_fileinfo;

本blog WWW

Posted by windtear at December 15, 2004 11:16 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.