V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
chengshilieren
V2EX  ›  程序员

typecho 博客换域名的正确姿势

  •  
  •   chengshilieren · Apr 12, 2021 · 2028 views
    This topic created in 1843 days ago, the information mentioned may be changed or developed.
    我用 phpstudy 在本地搭建并且测试了 typecho 博客,现在我想把博客迁移到服务器上面

    我目前想法就是,直接在 typecho 后台把站点地址 http://localhost 修改为 http://xxx.com ,然后导出数据库,打包代码,最后上传服务器导入数据库

    大家觉得我的姿势对不对,各位平时又是如何操作的呢?
    4 replies    2021-04-13 00:31:26 +08:00
    Showfom
        1
    Showfom  
    PRO
       Apr 12, 2021   ❤️ 1
    修改环境配置里绑定的域名 然后修改 MySQL 数据库里的域名 不建议后台去改
    lostberryzz
        2
    lostberryzz  
       Apr 12, 2021
    直接数据库导出文件查找替换走起
    chengshilieren
        3
    chengshilieren  
    OP
       Apr 12, 2021
    @Showfom 哈哈,其实我那个操作还行,上传以后就改了配置文件数据库信息
    Daige
        4
    Daige  
       Apr 13, 2021 via Android
    数据库查找关键词域名,一键替换
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1189 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 23:18 · PVG 07:18 · LAX 16:18 · JFK 19:18
    ♥ Do have faith in what you're doing.