当前位置: 首页 > news >正文

贵阳网站制作软件网站建设的思想

贵阳网站制作软件,网站建设的思想,网页版ppt,成都网站制作028net一、前言 在平时使用中#xff0c;当测试服务器端口是否开通时#xff0c;我们首先想到的是Telnet#xff0c;如下#xff1a; [rootk8s-master01 ~]# telnet 192.168.1.33 6443 Trying 192.168.1.33... Connected to 192.168.1.33. Escape character is ^].但是实际生产…一、前言 在平时使用中当测试服务器端口是否开通时我们首先想到的是Telnet如下 [rootk8s-master01 ~]# telnet 192.168.1.33 6443 Trying 192.168.1.33... Connected to 192.168.1.33. Escape character is ^].但是实际生产环境可能不允许我们使用Telnet工具此时我们只能使用其他工具进行测试端口是否开通。除Telnet工具外支持测试端口开通的工具有Curl、SSH、nc、wget、nmap。 二、工具介绍 2.1、curl 命令格式 $ curl ip:port成功示例说明 lckdlckd-PC:~$ curl 192.168.210.27:80 !DOCTYPE html html head titleWelcome to nginx!/title stylebody {width: 35em;margin: 0 auto;font-family: Tahoma, Verdana, Arial, sans-serif;} /style /head body h1Welcome to nginx!/h1 pIf you see this page, the nginx web server is successfully installed and working. Further configuration is required./ppFor online documentation and support please refer to a hrefhttp://nginx.org/nginx.org/a.br/ Commercial support is available at a hrefhttp://nginx.com/nginx.com/a./ppemThank you for using nginx./em/p /body /html失败示例说明 lckdlckd-PC:~$ curl 192.168.210.27:8081 curl: (7) Failed to connect to 192.168.210.27 port 8081: 拒绝连接2.2、ssh 命令格式 $ ssh -v -p port usernameip上面参数说明 -v: 是 ssh 命令的一个选项用于启用详细输出模式verbose mode--p port: 是 ssh 命令的另一个选项用于指定连接远程服务器时要使用的端口号username: 要连接到远程服务器的用户名ip: 是远程服务器的 IP 地址或主机名 成功示例说明 lckdlckd-PC:~$ ssh -v -p 80 192.168.210.27 OpenSSH_7.9p1 Debian-1dde, OpenSSL 1.1.1d 10 Sep 2019 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 192.168.210.27 [192.168.210.27] port 80. debug1: Connection established. debug1: identity file /home/lckd/.ssh/id_rsa type -1 debug1: identity file /home/lckd/.ssh/id_rsa-cert type -1 debug1: identity file /home/lckd/.ssh/id_dsa type -1 debug1: identity file /home/lckd/.ssh/id_dsa-cert type -1 debug1: identity file /home/lckd/.ssh/id_ecdsa type -1 debug1: identity file /home/lckd/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/lckd/.ssh/id_ed25519 type -1 debug1: identity file /home/lckd/.ssh/id_ed25519-cert type -1 debug1: identity file /home/lckd/.ssh/id_xmss type -1 debug1: identity file /home/lckd/.ssh/id_xmss-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.9p1 Debian-1dde debug1: ssh_exchange_identification: HTTP/1.1 400 Bad Requestdebug1: ssh_exchange_identification: Server: nginx/1.18.0 (Ubuntu)debug1: ssh_exchange_identification: Date: Wed, 15 Nov 2023 06:10:29 GMTdebug1: ssh_exchange_identification: Content-Type: text/htmldebug1: ssh_exchange_identification: Content-Length: 166debug1: ssh_exchange_identification: Connection: closedebug1: ssh_exchange_identification:debug1: ssh_exchange_identification: htmldebug1: ssh_exchange_identification: headtitle400 Bad Request/title/headdebug1: ssh_exchange_identification: bodydebug1: ssh_exchange_identification: centerh1400 Bad Request/h1/centerdebug1: ssh_exchange_identification: hrcenternginx/1.18.0 (Ubuntu)/centerdebug1: ssh_exchange_identification: /bodydebug1: ssh_exchange_identification: /htmlssh_exchange_identification: Connection closed by remote host失败示例说明 lckdlckd-PC:~$ ssh -v -p 8081 192.168.210.27 OpenSSH_7.9p1 Debian-1dde, OpenSSL 1.1.1d 10 Sep 2019 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 192.168.210.27 [192.168.210.27] port 8081. debug1: connect to address 192.168.210.27 port 8081: Connection refused ssh: connect to host 192.168.210.27 port 8081: Connection refused2.3、nc 命令格式 $ nc -zv ip port上面参数说明 nc: 是用于在命令行中进行网络连接的工具也称为 netcat。-v: 是 nc 命令的一个选项用于启用详细输出模式verbose mode-z: 是 nc 命令的另一个选项用于指示 nc 在连接成功后立即关闭连接而不发送或接收任何数据。这使得 nc 仅用于测试连接而不会执行实际数据传输。ip: 是远程服务器的 IP 地址或主机名port: 是远程服务器的端口号 成功示例说明 lckdlckd-PC:~$ nc -zv 192.168.210.27 80 Connection to 192.168.210.27 80 port [tcp/http] succeeded!失败示例说明 lckdlckd-PC:~$ nc -zv 192.168.210.27 8081 nc: connect to 192.168.210.27 port 8081 (tcp) failed: Connection refused2.4、wget 命令格式 $ wget ip:port成功示例说明 lckdlckd-PC:~$ wget 192.168.210.27:80 --2023-11-15 14:15:13-- http://192.168.210.27/ 正在连接 192.168.210.27:80... 已连接。 已发出 HTTP 请求正在等待回应... 200 OK 长度612 [text/html] 正在保存至: “index.html.1”index.html.1 100%[] 612 --.-KB/s 用时 0s2023-11-15 14:15:13 (124 MB/s) - 已保存 “index.html.1” [612/612])失败示例说明 lckdlckd-PC:~$ wget 192.168.210.27:8081 --2023-11-15 14:15:51-- http://192.168.210.27:8081/ 正在连接 192.168.210.27:8081... 失败拒绝连接。2.5、nmap 命令格式 $ nmap -p port ip如果没有先下载。 成功示例说明 lckdlckd-PC:~$ nmap -p 80 192.168.210.27 Starting Nmap 7.70 ( https://nmap.org ) at 2023-11-15 14:18 CST Nmap scan report for 192.168.210.27 Host is up (0.00027s latency).PORT STATE SERVICE 80/tcp open httpNmap done: 1 IP address (1 host up) scanned in 6.53 seconds失败示例说明 lckdlckd-PC:~$ nmap -p 8081 192.168.210.27 Starting Nmap 7.70 ( https://nmap.org ) at 2023-11-15 14:19 CST Nmap scan report for 192.168.210.27 Host is up (0.00033s latency).PORT STATE SERVICE 8081/tcp closed blackice-icecapNmap done: 1 IP address (1 host up) scanned in 0.06 seconds
http://www.hkea.cn/news/14337311/

相关文章:

  • 怎样做网站怎要加服务器wordpress熊掌号资源提交
  • 企业网站建设的一般要素有哪些网站可以免费做代码
  • 内蒙能源建设集团网站如何做企业网站后台管理
  • 怎么申请做网站成都网络推广运营公司
  • 公司网站制作新手教程wordpress 自定义按钮
  • 中国铁路建设监理协会官方网站做网站代码编辑工具
  • 汕头网站外包江苏省建设厅网站建造师强制注销
  • 昆明网站制作公司百度推广网站建设公司 深圳
  • 台州网站制作开发做网站哪家比较好
  • 除了网页外 网站还需要上海自贸区注册公司优惠政策
  • 做薪酬调查的网站上海市建设执业注册中心网站
  • 列出网站开发建设的步骤株洲定制网站建设
  • 如何k掉别人的网站自助小站
  • 新农村建设管理网站如何建设网站pdf下载
  • 丰城网站建设公司福州仓前网站建设
  • 即墨医院网站制作公司部署php网站
  • 下沙建设局网站深圳网站关键词排名优化
  • 将电脑做的网站放到外网环境设计专业作品集
  • wordpress网站刷新做网站前台和后台是什么
  • 教育公司 网站建设电影网站要怎样做才有出路
  • it 网站模板建设银行官方网站登录
  • 网站内容创造辽宁网站建设哪里好找
  • 自己做公司的网站上海最大企业前十名
  • 最专业的手机网站建设凉山网站建设
  • 百度站长平台注册舞曲网站建设
  • 网站平台建设心得如何做网站资讯
  • 智库门户网站建设搜狗推广登录
  • 关于建设工程资质网站dw网站大学生代做
  • 海口仿站定制模板建站平面设计在线课程
  • 沈阳网站建设包括网站开发和系统开发的区别