简体   繁体   English

GCP - 在 VM 重启时更改 wordpress 中的新 IP 的位置

[英]GCP - Place to change new IP in wordpress on VM restart

I have wordpress installed on GCP.我在 GCP 上安装了 wordpress。 Yesterday, I restarted the VM due to which my external IP changed.昨天,我重新启动了 VM,因此我的外部 IP 发生了变化。 Due to this, fontawesome and some other URL's are still pointing to old IP. Where should I make the changes to fix it.因此,fontawesome 和其他一些 URL 仍然指向旧的 IP。我应该在哪里进行更改以修复它。

I have avada theme installed.我安装了 avada 主题。

This url is not getting loaded file:wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/webfonts此 url 未加载文件:wp-content/themes/Avada/includes/lib/assets/fonts/fontawesome/webfonts

The resolution is specific to Avada该分辨率特定于 Avada

After Site Migration In some cases, when users migrate sites, the Font Awesome files can still show a path to the old site, and this causes the font to now show.站点迁移后 在某些情况下,当用户迁移站点时,Font Awesome 文件仍然可以显示旧站点的路径,这会导致现在显示字体。 Resetting the Fusion Caches easily fixes this (Avada > Theme Options > Performance > Reset Fusion Caches).重置 Fusion Caches 很容易解决这个问题(Avada > Theme Options > Performance > Reset Fusion Caches)。

I believe that you would have to change all of the URLs manually in order to reconnect them with WordPress. From what you have written it may be prudent for you to get a static external IP for your VM [1].我相信您必须手动更改所有 URL 才能将它们与 WordPress 重新连接。根据您所写的内容,为您的 VM [1] 获取 static 外部 IP 可能是明智的。

[1] Reserving a static external IP address: https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address [1]预留一个static外部IP地址: https://cloud.google.com/compute/docs/ip-addresses/reserve-static-external-ip-address

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM