Bitnami:出于安全原因,只能使用localhost(127.0.0.1)作为主机名来访问此URL [英] Bitnami: For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname

查看:298
本文介绍了Bitnami:出于安全原因,只能使用localhost(127.0.0.1)作为主机名来访问此URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法访问phpmyadmin: http://ip/phpmyadmin

could not access phpmyadmin : http://ip/phpmyadmin

它显示出于安全原因,只能使用localhost(127.0.0.1)作为主机名来访问此URL."

it is showing "For security reasons, this URL is only accessible using localhost (127.0.0.1) as the hostname."

请建议我解决这个问题.

Please suggest me to solve this problem.

推荐答案

此处是Bitnami工程师

Bitnami Engineer here,

出于安全原因,仅当使用127.0.0.1作为主机名时才可以访问phpMyAdmin.要从远程系统访问它,必须创建一个SSH隧道,该隧道将请求从127.0.0.1路由到Web服务器.这意味着您必须能够通过SSH连接到服务器,才能远程访问这些应用程序.

For security reasons, phpMyAdmin is accessible only when using 127.0.0.1 as the hostname. To access it from a remote system, you must create an SSH tunnel that routes requests to the Web server from 127.0.0.1. This implies that you must be able to connect to your server over SSH in order to access these applications remotely.

  • 在Windows中,您可以配置Putty或SSH客户端,以将所有请求重定向到计算机中的特定端口(例如8888)到远程计算机的80端口.

  • In Windows, you can configure Putty or the SSH client you have to redirect all the request to a specific port (the 8888 one for example) in your machine to the 80 port of the remote machine.

对于Unix系统,您可以使用此命令创建SSH隧道

For Unix systems, you can use this command to create the SSH tunnel

ssh -N -L 8888:127.0.0.1:80 -i KEYFILE bitnami@SERVER-IP

,然后在浏览器中使用 http://localhost:8888/phpmyadmin .

and then use http://localhost:8888/phpmyadmin in the browser.

您可以在我们的文档中了解更多信息

You can learn more about this in our documentation

https://docs.bitnami.com/aws/apps/wordpress/get-started/access-phpmyadmin/

这篇关于Bitnami:出于安全原因,只能使用localhost(127.0.0.1)作为主机名来访问此URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆