97久久国产亚洲精品超碰热,成人又色又爽的免费网站,色偷偷女人的天堂a,男女高潮喷水在线观看,国内精品一线二线三线区别在哪里

返回列表 發(fā)帖
查看: 5157|回復(fù): 5

Discuz ! X3.4,老舊帖子本地轉(zhuǎn)到遠(yuǎn)程與遠(yuǎn)程轉(zhuǎn)到本地的方法!

83

主題

2786

回帖

3569

積分

功行圓滿

貢獻
23 點
金幣
351 個
樓主
發(fā)表于 2021-4-23 03:12:05 | 只看樓主 |倒序瀏覽 |閱讀模式


首先,要設(shè)置本地轉(zhuǎn)到遠(yuǎn)程,當(dāng)然先要啟用遠(yuǎn)程附件,并測試成功,否則不要使用老舊帖子本地轉(zhuǎn)到遠(yuǎn)程方法。要設(shè)置遠(yuǎn)程轉(zhuǎn)到本地方法,當(dāng)然也先要關(guān)閉遠(yuǎn)程附件功能。

一、本地轉(zhuǎn)到遠(yuǎn)程

1、論壇后臺–全局–上傳設(shè)置–啟用遠(yuǎn)程附件

2、將本地附件目錄data/attachment里面的文件夾移動到遠(yuǎn)程服務(wù)器上

3、數(shù)據(jù)庫執(zhí)行sql語句

論壇的

(where remote=0表示本地,where remote=1表示遠(yuǎn)程, pre_表示數(shù)據(jù)庫表前綴)

  1. update pre_forum_attachment_0 set remote=1 where remote=0;

  2. update pre_forum_attachment_1 set remote=1 where remote=0;

  3. update pre_forum_attachment_2 set remote=1 where remote=0;

  4. update pre_forum_attachment_3 set remote=1 where remote=0;

  5. update pre_forum_attachment_4 set remote=1 where remote=0;

  6. update pre_forum_attachment_5 set remote=1 where remote=0;

  7. update pre_forum_attachment_6 set remote=1 where remote=0;

  8. update pre_forum_attachment_7 set remote=1 where remote=0;

  9. update pre_forum_attachment_8 set remote=1 where remote=0;

  10. update pre_forum_attachment_9 set remote=1 where remote=0;
復(fù)制代碼


門戶的

  1. update pre_portal_article_title set remote=1 where remote=0;

  2. update pre_portal_attachment set remote=1 where remote=0;

  3. update pre_portal_topic_pic set remote=1 where remote=0;
復(fù)制代碼


相冊的

{相冊表中的remote取值還有一種情況為remote=2(論壇附件圖片保存到相冊)}

  1. update pre_home_pic set remote=remote+1;
復(fù)制代碼


二、遠(yuǎn)程轉(zhuǎn)到本地

后臺關(guān)閉遠(yuǎn)程附件設(shè)置,將附件移動到本地服務(wù)器的 data/attachment目錄后執(zhí)行sql即可

(where remote=0表示本地,where remote=1表示遠(yuǎn)程, pre_表示數(shù)據(jù)庫表前綴)(已包括論壇、門戶與相冊)

  1. update pre_forum_attachment_0 set remote=0 where remote=1;

  2. update pre_forum_attachment_1 set remote=0 where remote=1;

  3. update pre_forum_attachment_2 set remote=0 where remote=1;

  4. update pre_forum_attachment_3 set remote=0 where remote=1;

  5. update pre_forum_attachment_4 set remote=0 where remote=1;

  6. update pre_forum_attachment_5 set remote=0 where remote=1;

  7. update pre_forum_attachment_6 set remote=0 where remote=1;

  8. update pre_forum_attachment_7 set remote=0 where remote=1;

  9. update pre_forum_attachment_8 set remote=0 where remote=1;

  10. update pre_forum_attachment_9 set remote=0 where remote=1;

  11. update pre_portal_article_title set remote=0 where remote=1;

  12. update pre_portal_attachment set remote=0 where remote=1;

  13. update pre_portal_topic_pic set remote=0 where remote=1;

  14. update pre_home_pic set remote=remote-1;
復(fù)制代碼



6

主題

84

回帖

114

積分

漸入佳境

貢獻
0 點
金幣
17 個
沙發(fā)
發(fā)表于 2021-5-6 22:29:48 | 只看Ta
看看......................

3

主題

15

回帖

25

積分

初學(xué)乍練

貢獻
0 點
金幣
6 個
板凳
發(fā)表于 2021-5-12 10:29:59 | 只看Ta
遠(yuǎn)程附件轉(zhuǎn)本地,但模板DIY圖片調(diào)用的還是遠(yuǎn)程的相對路徑,請問大佬怎麼解決?

83

主題

2786

回帖

3569

積分

功行圓滿

貢獻
23 點
金幣
351 個
地板
 樓主| 發(fā)表于 2021-5-12 17:41:06 | 只看Ta
wuyoua 發(fā)表于 2021-5-12 01:29
遠(yuǎn)程附件轉(zhuǎn)本地,但模板DIY圖片調(diào)用的還是遠(yuǎn)程的相對路徑,請問大佬怎麼解決? ...

請嘗試按 https://gitee.com/Discuz/DiscuzX/pulls/912/files 修改后再試。

另外建議對本修改的測試在測試站點進行,避免影響正常業(yè)務(wù)。

81

主題

341

回帖

457

積分

爐火純青

貢獻
2 點
金幣
5 個
QQ
5#
發(fā)表于 2021-5-15 21:55:39 | 只看Ta
樓主,我想問個問題,3.4最快最穩(wěn)的環(huán)境是哪個?我現(xiàn)在是php7.1+mysql5.7  論壇開啟了opcache+redis  速度已經(jīng)比較滿意了。
那么,還可以更上php8.0+mysql8.0嗎?速度是否是會有更好的提升。是否支持和穩(wěn)定。
感謝

83

主題

2786

回帖

3569

積分

功行圓滿

貢獻
23 點
金幣
351 個
6#
 樓主| 發(fā)表于 2021-5-15 22:44:57 | 只看Ta
fujie1982 發(fā)表于 2021-5-15 12:55
樓主,我想問個問題,3.4最快最穩(wěn)的環(huán)境是哪個?我現(xiàn)在是php7.1+mysql5.7  論壇開啟了opcache+redis  速度 ...

Discuz x 3.4不支持  PHP8.0
您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

  • 關(guān)注公眾號
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號 |皖公網(wǎng)安備34010302002376號 )|網(wǎng)站地圖|star

GMT+8, 2025-10-17 00:04 , Processed in 0.047638 second(s), 11 queries , Redis On.

Powered by Discuz! X5.0 Licensed

© 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表