cd /www/wwwroot/www.new-domain.com # 安全替换数据库域名(兼容序列化数据) wp search-replace \ 'https://dev.185858.xyz' \ 'https://www.new-domain.com' \ --all-tables-with-prefix \ --precise \ --skip-columns=guid \ --allow-root # 清理 WordPress 缓存 wp cache flush --allow-root # 刷新固定链接规则 wp rewrite flush --allow-root # 清理 Elementor CSS 缓存 wp elementor flush-css --allow-root