Skip to content


Discuz! 7.2 升级至 Discuz! X1.5 记录

Discuz! X1.5 【R20101228】
下载

Discuz!7.2/UCHome2.0/SupeSite7.5 至 Discuz!X1.5正式版 升级教程:
http://www.discuz.net/thread-1887968-1-1.html

    需要UCenter 1.5.2的版本
    升级前创建个存放discuzx的新数据库,然后安装discuzx
    执行convert程序会将原discuz数据重新插入到discuzx库中
    新discuzx中的表名和discuz不同,自有程序需要重新修改
    200万会员,800万贴子,4G数据的论坛转换花了11个小时,新数据库大小略有增加
    升级过程中可能会碰到重复的健值造成升级中断
    安装后默认的sql缓存方式可能有bug,一直卡在pre_common_syscache表的发送中,把百M的内网都占满了,改用file方式后解决.
    eaccelerator加速方式需eaccelerator-0.9.5.3版本,但我尝试了0.9.5.2,0.9.5.3,eaccelerator-0.9.6都不成功
    memcache加速方式大概只用200k数据,有导航菜单等cache丢失现像,效率也不是很好
    discuz7.2中的广告升级后可能会占满cpu,原因不详
    后台计划任务第一次要手工执行下
    discuzx论坛负载比discuz7.2略有上升,目前保持在3左右

nginx rewrite

  1. rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
  2. rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
  3. rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
  4. rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
  5. rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
  6. rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
  7. rewrite ^([^\.]*)/([a-z]+)-(.+)\.html$ $1/$2.php?rewrite=$3 last;
  8. if (!-e $request_filename) {
  9. return 404;
  10. }

discuz7.2 兼容rewrite

  1. if ($query_string ~* tid=([0-9]+)) {
  2.     set $id $1;
  3.     rewrite "^(.*)/viewthread.php$" $1/forum.php?mod=viewthread&tid=$id&extra=page%3D&page=1 last;
  4. }
  5. if ($query_string ~* gid=([0-9]+)) {
  6.     set $id $1;
  7.     rewrite "^(.*)/index.php$" $1/forum.php?gid=$id last;
  8. }
  9. if ($query_string ~* fid=([0-9]+)&filter=type&typeid=([0-9]+)) {
  10.     set $id $1;
  11.     set $typeid $2;
  12.     rewrite "^(.*)/forumdisplay.php$" $1/forum.php?mod=forumdisplay&fid=$id&filter=typeid&typeid=$typeid last;
  13. }
  14. rewrite ^([^\.]*)/archiver/$ $1/forum.php?archiver=1 last;
  15. if ($query_string ~* action=credits) {
  16.     rewrite "^(.*)/memcp.php$" $1/home.php?mod=spacecp&ac=credit last;
  17. }
  18. rewrite ^([^\.]*)/attachment.php$ $1/forum.php last;

图片路径修正

  1. cd htdocs/bbs/
  2. ln -s ./static/image ./images
  3. ln -s ./data/attachment/forum ./attachments

Posted in Discuz/Uchome/Ucenter, 其它.

Tagged with , .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.