我在 Raspberry(Ubuntu 服务器)中安装了 NextCloud 作为 snap 包:
costales@raspberry:~$ ls /snap/ | grep nextcloud
nextcloud
costales@raspberry:~$ snap list | grep nextcloud
nextcloud 11.0.1snap3 863 nextcloud devmode
costales@raspberry:~$
我将本地别名与 PC 上的 Raspberry IP 关联起来:
costales@dev:~$ grep cloud /etc/hosts
192.168.1.75 cloud
costales@dev:~$ ping cloud
PING cloud (192.168.1.75) 56(84) bytes of data.
64 bytes from cloud (192.168.1.75): icmp_seq=1 ttl=64 time=9.30 ms
64 bytes from cloud (192.168.1.75): icmp_seq=2 ttl=64 time=4.72 ms
^C
--- cloud ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 4.725/7.014/9.303/2.289 ms
costales@dev:~$
但当我尝试从我的电脑访问http://cloud.local但是我收到了 404 错误(并且错误发生后浏览器也在 URL 中添加了 www)。
有什么想法吗?提前谢谢!