最近虛擬機的地址更改了,然后發現NextCloud就不可用了。報錯如下:
根據報錯里的提示來找到config.php.
[root@localhost nextcloud]# find / -xdev -name config.php #尋找文件的位置 [root@localhost nextcloud]# vim /data/www/default/nextcloud/config/config.php #編輯config.php文件
看到trusted_domains的選項,將地址替換成現在的IP地址就好了。
最后我還是systemctl restart httpd,來重啟了一下apache。