开启端口后无法telent通

原因就是开启服务失败,也没有检查服务进程不知道开启服务失败

[root@yangdong ~]# firewall-cmd --list-all
public (active)target: defaulticmp-block-inversion: nointerfaces: ens33sources: services: dhcpv6-client sshports: 3306/tcp 6379/tcp 22/tcp 8848/tcp 8849/tcp 8850/tcp 1111/tcpprotocols: masquerade: noforward-ports: source-ports: icmp-blocks: rich rules:

开启了3306,6379,22,8848,8849,8850,1111端口

但是只监听了1111和22端口没有监听其他端口所以telnet不通

[root@yangdong bin]# netstat  -anp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:1111            0.0.0.0:*               LISTEN      4017/nginx: master
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1523/cupsd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1830/master
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      1927/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1520/sshd
tcp        0     52 192.168.1.10:22         192.168.1.4:49769       ESTABLISHED 2989/sshd: root@pts
tcp6       0      0 ::1:631                 :::*                    LISTEN      1523/cupsd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1830/master
tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd
tcp6       0      0 :::22                   :::*                    LISTEN      1520/sshd         

原因,其他端口因为服务开启失败导致无法监听端口

重新开启nacos服务并查看进程是否存在

[root@yangdong bin]# sh startup.sh -p 8848
/opt/jdk1.8.0_11/bin/java  -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Djava.ext.dirs=/opt/jdk1.8.0_11/jre/lib/ext:/opt/jdk1.8.0_11/lib/ext -Xloggc:/opt/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/opt/nacos/plugins/health,/opt/nacos/plugins/cmdb,/opt/nacos/plugins/mysql -Dnacos.home=/opt/nacos -jar /opt/nacos/target/nacos-server.jar  --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/opt/nacos/conf/ --logging.config=/opt/nacos/conf/nacos-logback.xml --server.max-http-header-size=524288
nacos is starting with cluster
nacos is starting,you can check the /opt/nacos/logs/start.out
[root@yangdong bin]# ps -ef |grep nacos
root       5179      1 99 14:59 pts/1    00:00:49 /opt/jdk1.8.0_11/bin/java -Dserver.port=8848 -server -Xms2g -Xmx2g -Xmn1g -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=320m -XX:-OmitStackTraceInFastThrow -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/nacos/logs/java_heapdump.hprof -XX:-UseLargePages -Djava.ext.dirs=/opt/jdk1.8.0_11/jre/lib/ext:/opt/jdk1.8.0_11/lib/ext -Xloggc:/opt/nacos/logs/nacos_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -Dloader.path=/opt/nacos/plugins/health,/opt/nacos/plugins/cmdb,/opt/nacos/plugins/mysql -Dnacos.home=/opt/nacos -jar /opt/nacos/target/nacos-server.jar --spring.config.location=classpath:/,classpath:/config/,file:./,file:./config/,file:/opt/nacos/conf/ --logging.config=/opt/nacos/confnacos-logback.xml --server.max-http-header-size=524288 nacos.nacos
root       5255   4105  0 14:59 pts/1    00:00:00 grep --color=auto nacos

开启服务成功后

[root@yangdong bin]# netstat -lntp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      1372/cupsd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1666/master
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1/systemd
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      1862/dnsmasq
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1377/sshd
tcp6       0      0 ::1:631                 :::*                    LISTEN      1372/cupsd
tcp6       0      0 ::1:25                  :::*                    LISTEN      1666/master
tcp6       0      0 :::3306                 :::*                    LISTEN      4765/docker-proxy
tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd
tcp6       0      0 :::8848                 :::*                    LISTEN      5179/java
tcp6       0      0 :::22                   :::*                    LISTEN      1377/sshd     

8848端口便被监听了

注意:nacos服务的进程有延时性,当查看进程时,启动过程中进程存在,如果出现异常,比如依赖的mysql没有启动,nacos进程就会自动关闭

linux使用过程中出现的问题相关推荐

  1. 解决Linux安装过程中不能安装Grub的问题

    参考,部分转载和万分感谢:解决Linux安装过程中不能安装Grub的问题 关卡1: 从前段时间折腾了很久,刚开始是因为/boot区已经占满了,那么为什么会占满呢?因为当时尝试初次手动分区,然后参考了网 ...

  2. 嵌入式Linux启动过程中的问题积累

    嵌入式Linux启动过程中的问题积累 Dongas 07-12-19 1.Bad Magic Number ## Booting image at 33000000 ... Bad Magic Num ...

  3. 小米手机运行linux,在小米4手机安装Linux deploy,然后安装kali linux,但过程中出现如图所示問題...

    安装步骤: 1.下载最新版EasyBCD2.0Beta. 2.在win7的计算机管理-->存储-->磁盘管理中分出一部分free space来.注意:这里一定要腾出一个FAT32格式的磁盘 ...

  4. linux优化网页加载过程,【zz】Linux起步过程中硬件模块的加载

    [zz]Linux起步过程中硬件模块的加载 [zz]Linux起步过程中硬件模块的加载 日期:2014-05-16 浏览次数:20354 次 [zz]Linux启动过程中硬件模块的加载 文章来源不详. ...

  5. linux启动过程中内核拷贝,轻松识破linux内核启动过程中的“”套路“”

    内核启动流程相关的内容让很多热爱linux的小伙伴既爱又恨,因为这是了解linux系统基本构造的良好过程同时由于其本身复杂且底层,脑子中的脉络不是很清晰,本文就总结了一些优秀博文,以自己的理解来解构一 ...

  6. linux内核启动文件系统,Linux启动过程中文件系统的加载

    前言:我觉得我的文章相对来说都是比较浅显的.一些初学者可以看看,这也是我不在嵌入式那个版上发文的原因.对于高手来说,如果你们不吝啬时间的话,希望也能帮我看看,指点一下其中的错误.这也是我到这里来和大家 ...

  7. linux安装过程中遇到了“kernel panic : no working init found“的解决措施

    如题,遇到此类问题,首先看log 这说明内核部分启动顺利,值得庆祝,但是问题出在了制作的根文件目录里,缺乏init来启动rootfs. 简而言之就是如下解决措施 chroot rootfs apt u ...

  8. linux移植过程中近日遇到问题汇总贴

    0.C++编译错误"a storage class can only be specified for objects and funct http://www.aichengxu.com/ ...

  9. oracle安装gcc报错,记录oracle 9i for linux安装过程中几个错误

    最近因为一个测试环境需要oracle 9i,我在Oracle linux 4.8上安装,竟然遇到几个问题记录下: 1.运行runInstaller提示如下错误 [oracle@xifenfei Dis ...

最新文章

  1. 学生信息管理系统(连接数据库,面向对象的方法实现学生信息的增删改查操作)...
  2. bzoj1816: [Cqoi2010]扑克牌
  3. boost::allocator_destroy的实例
  4. springboot整合nacos配置实现实时更新
  5. java 文件名乱码_详解关于java文件下载文件名乱码问题解决方案
  6. Matlab图像标题_title
  7. 如何将常用软件在Finder工具栏上置顶?
  8. arcgis engine设置数据源路径_不懂ArcGIS,你前期分析用什么做的?
  9. Why need to use 【com.opensymphony.xwork2.Preparable】
  10. Proteus总线连接心得
  11. 第五部分 家庭创业奔小康6.开家畅销书专送店
  12. 计算机网络基础知识教案模板,网络技术应用教案模板
  13. python调用微信截图_Python调用微信截图工具
  14. 阿里云物联网平台如何进行云产品流转
  15. SQL篇·Oracle字段根据逗号等分割
  16. 西安交大计算机专业考研复试,西交大的计算机考研初试+复试经历
  17. 计算机图形图像处理专业学什么,计算机图形图像处理教学大纲
  18. Flink 实现Locality 模式调度
  19. mysql 12点_MySQL 查询昨天中午12点到今天中午12点的数据
  20. 如何提取公众号文章中的音频

热门文章

  1. 3DSMax怎么设置摄像机参数_3DSMax设置摄像机参数 小白教程
  2. Large-scale cluster management at Google with Borg
  3. Java:抽象成类找对象
  4. linux下Found a swap file by the name解决
  5. Android 通过蓝牙macAdress或者name实现自动连接的一种方法
  6. 老板想留住的人,都具备这些品质
  7. c语言字符串字数统计,统计字符数 (C++代码)
  8. java:字符和字节区别
  9. 了解海外域名市场,把域名卖到全世界!
  10. 李航老师《统计学习方法》第二版第三章课后题答案