如何通过 URL 从远程 Ubuntu 服务器查看图像? Python
How can I view image through URL from remote Ubuntu server? Python
我的远程 ubuntu(16.04) 服务器上有一张图片,所以我想将它粘贴到我的 Github Readme.md 文件中。
那么如何通过 URL 查看(不是下载,不是复制)该图像,例如 server_ip_address/img.png
感谢任何帮助或想法!)
如果您想在 ubuntu 服务器上托管资源,您应该安装网络服务器 (apache / nginx)(如果尚未安装的话)。这是 ubuntu apache 的文档:https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04.
将图像移动到网络服务器的文档根目录(可能 /var/www/html)以便您可以通过 url 访问它。如果你在主机上有一个静态 ip 那么你应该能够通过 http://static_ip/img.png 访问它并将 url 添加到 Readme.md
我的远程 ubuntu(16.04) 服务器上有一张图片,所以我想将它粘贴到我的 Github Readme.md 文件中。
那么如何通过 URL 查看(不是下载,不是复制)该图像,例如 server_ip_address/img.png
感谢任何帮助或想法!)
如果您想在 ubuntu 服务器上托管资源,您应该安装网络服务器 (apache / nginx)(如果尚未安装的话)。这是 ubuntu apache 的文档:https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04.
将图像移动到网络服务器的文档根目录(可能 /var/www/html)以便您可以通过 url 访问它。如果你在主机上有一个静态 ip 那么你应该能够通过 http://static_ip/img.png 访问它并将 url 添加到 Readme.md