服务器端口开启

我现在外网访问不了服务器的8089 端口,可以进行以下操作

1. 看看阿里云服务器的安全组配置是否开了

ping  主机ip

telnet ip 8089

traceroute -n -T -p 8089  ip 看是否有节点不通

curl  http://ip:8089 

2.

转自https://www.cnblogs.com/zienzir/p/9346528.html

[Linux] 关闭防火墙以及开放端口
一.

service iptables stop 临时关闭,

chkconfig iptables off完全关闭

service iptables status状态,

service iptables start/restart 开启/重启防火墙

二.

输入命令

iptables -I INPUT -p tcp --dport 22 -j ACCEPT

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

iptables -I INPUT -p tcp --dport 8080 -j ACCEPT

iptables -I INPUT -p tcp --dport 6379 -j ACCEPT

来开放相关端口,分别是

XShell连接22 , 本地80, mysql 3306,tomcat 8080, redis 6379

 

 

1. geoserver 开启

进入geoserver-2.16.0/bin 文件夹

nohup ./startup.sh &

2. react 开启 (转自https://www.jb51.net/article/127481.htm

3. springboot 开启

nohup java -jar target/spring... &

4. mysql 服务

service mysqld status 命令来查看mysql 的启动状态

如果出现mysqld is stopped 那就说明mysql服务是停止状态

posted @ 2020-02-09 13:42  LandingGuys  阅读(714)  评论(0编辑  收藏  举报