大佬教程收集整理的这篇文章主要介绍了无法打开 ssl 443 端口服务器,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个托管在 Dreamcompute 中的外部服务器 它可以视为虚拟专用服务器(vps)
我已经测试过使用:https://ping.eu/port-chk/ 结果:
xxx.xxx.xxx.xxx:443 port is closed
xxx.xxx.xxx.xxx:80 port is open
xxx.xxx.xxx.xxx:22 port is open
我检查了我的服务器端口在 linux 中是否打开:
username@server:~$ sudo ufw status
Status: active
To Action From
-- ------ ----
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
22/tcp ALLOW Anywhere
3306/tcp ALLOW Anywhere
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
3306/tcp (v6) ALLOW Anywhere (v6)
我可以通过
在内部访问网络服务器http://localhost/
https://example.com/
http://example.com/
我用代码设置了 index.php:
<?=phpinfo()?>
根据我的经验,这是我的路由器防火墙问题,但我无法控制。 也许是我的 dns 或其他什么?
检查端口需要执行的步骤: 验证您是否可以从本地机器连接...您可以在本地主机 (127.0.0.1) 以及您机器的 IP 地址上 telnet 到端口 443。(您已经完成了我所看到的。)您应该至少得到一个答案(即验证该端口上有一个侦听器)。
举个例子:
$ telnet 127.0.0.1 443
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
这确认端口正在侦听
$ telnet 127.0.0.1 443
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
我们也可以通过检查NETSTAT
$ netstat -antl | grep 443
tcp 0 0 127.0.0.1:52421 127.0.0.1:443 TIME_WAIT
tcP6 0 0 :::443 :::* LISTEN
对于 SSL,我们可以使用 openSSL
$ openssl s_client -connect 127.0.0.1:443
CONNECTED(00000003)
...
您可能需要在路由器或网络防火墙上打开和/或转发地址。
希望它工作正常!! 如果不告诉我们,我们将研究更多解决方案!
以上是大佬教程为你收集整理的无法打开 ssl 443 端口服务器全部内容,希望文章能够帮你解决无法打开 ssl 443 端口服务器所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。