大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
/bin/systemctl stop firewalld.service
systemctl disable firewalld.service
yum install iptables-services
Package iptables-services-1.4.21-17.el7.x86_64 already installed and latest version
vi /etc/sysconfig/iptables
-A INPUT -m state –state NEW -m tcp -p tcp –dport 6070 -j ACCEPT
/bin/systemctl start iptables.service
systemctl enable iptables.service
iptables -L
yum install nc
nc 106.14.21.223 6070
rpm –q telnet-client
[root@iZuf6492eksiqtd5hy86f8Z pay]# iptables -t nat -A PREROUTING -p tcp –dport 80 -j REDIRECT –to-port 8080
[root@iZuf6492eksiqtd5hy86f8Z pay]# iptables -t nat -A PREROUTING -p tcp –dport 16070 -j REDIRECT –to-port 6070
[root@iZuf6492eksiqtd5hy86f8Z pay]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
service iptables status
/bin/systemctl restart iptables iptables.service
/bin/systemctl start iptables iptables.service
/bin/systemctl stop iptables iptables.service
#查看已经开放的端口
[root@localhost bin]# netstat -tln
#查看网络连接
netstat -apn
#查看端口使用情况
[root@localhost bin]# lsof -i:3306
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mysqld 2728 mysql 30u IPv6 27628 0t0 TCP *:mysql (LISTEN)
lsof -i TCP| fgrep LISTEN
[root@localhost bin]# netstat -anlp | grep 3306
tcp6 0 0 :::3306 :::* LISTEN 2728/mysqld
unix 3 [ ] STREAM CONNECTED 33068 3360/pulseaudio
[root@localhost bin]# nc -lp 9393 &
[root@localhost bin]# netstat -an | grep 9393
tcp 0 0 0.0.0.0:9393 0.0.0.0:* LISTEN
tcp6 0 0 :::9393 :::* LISTEN
vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 9393 -j ACCEPT
[root@localhost nescafe]# /bin/systemctl start firewalld.service
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/179200.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...