V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  kestrelBright  ›  全部回复第 5 页 / 共 9 页
回复总数  173
1  2  3  4  5  6  7  8  9  
2023-01-05 10:50:56 +08:00
回复了 kestrelBright 创建的主题 程序员 求助 iptables 开放端口无效
@gesse 好的 谢谢大佬
2023-01-05 09:39:54 +08:00
回复了 kestrelBright 创建的主题 程序员 求助 iptables 开放端口无效
@AS4694lAS4808 请教回环是什么意思? loopback 么?

@gesse
```
[root@localhost ~]# iptables-save
# Generated by iptables-save v1.4.21 on Thu Jan 5 09:33:51 2023
*nat
:PREROUTING ACCEPT [312443:27129720]
:INPUT ACCEPT [312443:27129720]
:OUTPUT ACCEPT [383787:24152445]
:POSTROUTING ACCEPT [383789:24152565]
:DOCKER - [0:0]
-A PREROUTING -m addrtype --dst-type LOCAL -j DOCKER
-A OUTPUT ! -d 127.0.0.0/8 -m addrtype --dst-type LOCAL -j DOCKER
-A POSTROUTING -s 172.17.0.0/16 ! -o docker0 -j MASQUERADE
-A POSTROUTING -s 172.17.0.2/32 -d 172.17.0.2/32 -p tcp -m tcp --dport 9000 -j MASQUERADE
-A POSTROUTING -s 172.17.0.3/32 -d 172.17.0.3/32 -p tcp -m tcp --dport 6379 -j MASQUERADE
-A POSTROUTING -s 172.17.0.4/32 -d 172.17.0.4/32 -p tcp -m tcp --dport 9000 -j MASQUERADE
-A DOCKER -i docker0 -j RETURN
-A DOCKER ! -i docker0 -p tcp -m tcp --dport 9000 -j DNAT --to-destination 172.17.0.2:9000
-A DOCKER ! -i docker0 -p tcp -m tcp --dport 6379 -j DNAT --to-destination 172.17.0.3:6379
-A DOCKER ! -i docker0 -p tcp -m tcp --dport 9001 -j DNAT --to-destination 172.17.0.4:9000
COMMIT
# Completed on Thu Jan 5 09:33:51 2023
# Generated by iptables-save v1.4.21 on Thu Jan 5 09:33:51 2023
*filter
:INPUT ACCEPT [14664149:7555216414]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [8199559:6986569057]
:DOCKER - [0:0]
:DOCKER-ISOLATION-STAGE-1 - [0:0]
:DOCKER-ISOLATION-STAGE-2 - [0:0]
:DOCKER-USER - [0:0]
-A INPUT -p tcp -m tcp --dport 3307 -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1881 -j ACCEPT
-A FORWARD -j DOCKER-USER
-A FORWARD -j DOCKER-ISOLATION-STAGE-1
-A FORWARD -o docker0 -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -o docker0 -j DOCKER
-A FORWARD -i docker0 ! -o docker0 -j ACCEPT
-A FORWARD -i docker0 -o docker0 -j ACCEPT
-A DOCKER -d 172.17.0.2/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 9000 -j ACCEPT
-A DOCKER -d 172.17.0.3/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 6379 -j ACCEPT
-A DOCKER -d 172.17.0.4/32 ! -i docker0 -o docker0 -p tcp -m tcp --dport 9000 -j ACCEPT
-A DOCKER-ISOLATION-STAGE-1 -i docker0 ! -o docker0 -j DOCKER-ISOLATION-STAGE-2
-A DOCKER-ISOLATION-STAGE-1 -j RETURN
-A DOCKER-ISOLATION-STAGE-2 -o docker0 -j DROP
-A DOCKER-ISOLATION-STAGE-2 -j RETURN
-A DOCKER-USER -j RETURN
COMMIT
```


@old9
```
[root@localhost ~]# ss -nat
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:18090 *:*
LISTEN 0 128 *:3307 *:*
LISTEN 0 128 *:3308 *:*
LISTEN 0 128 *:3309 *:*
LISTEN 0 128 *:21453 *:*
LISTEN 0 128 *:21454 *:*
LISTEN 0 128 *:111 *:*
LISTEN 0 128 *:80 *:*
LISTEN 0 128 *:6000 *:*
LISTEN 0 5 192.168.122.1:53 *:*
LISTEN 0 128 *:22 *:*
LISTEN 0 128 *:24631 *:*
LISTEN 0 128 127.0.0.1:631 *:*
LISTEN 0 128 *:24632 *:*
LISTEN 0 128 *:1880 *:*
LISTEN 0 128 *:1881 *:*
LISTEN 0 128 *:801 *:*
LISTEN 0 128 *:10050 *:*
TIME-WAIT 0 0 1.1.5.19:35706 4.1.8.8:1880
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58260
ESTAB 0 0 1.1.5.19:80 1.2.5.2:50305
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58640
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58526
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58508
TIME-WAIT 0 0 1.1.5.19:36360 4.1.8.8:1880
ESTAB 0 0 1.1.5.19:80 1.2.5.2:50308
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58368
ESTAB 0 0 1.1.5.19:80 1.2.5.2:50309
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58288
ESTAB 0 0 1.1.5.19:22 10.10.4.139:53924
TIME-WAIT 0 0 1.1.5.19:80 2.2.8.176:50335
TIME-WAIT 0 0 1.1.5.19:80 2.2.8.176:50340
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58272
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58656
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58320
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58452
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58304
ESTAB 0 0 1.1.5.19:80 1.2.5.2:50307
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58462
TIME-WAIT 0 0 1.1.5.19:80 2.2.8.176:50341
ESTAB 0 0 1.1.5.19:33678 4.1.8.8:1723
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58432
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58482
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58384
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58606
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58470
TIME-WAIT 0 0 1.1.5.19:36356 4.1.8.8:1880
ESTAB 0 0 1.1.5.19:80 1.2.5.2:50306
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58410
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58676
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58536
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58440
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58338
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58422
TIME-WAIT 0 0 1.1.5.19:36358 4.1.8.8:1880
ESTAB 0 0 1.1.5.19:80 8.1.1.2:58354
LISTEN 0 128 :::9000 :::*
LISTEN 0 128 :::9001 :::*
LISTEN 0 128 :::6379 :::*
LISTEN 0 128 :::111 :::*
LISTEN 0 128 :::6000 :::*
LISTEN 0 128 :::22 :::*
LISTEN 0 128 ::1:631 :::*
```
@chunrix 保存了的
-rw-r--r-- 1 root root 2171 1 月 3 16:57 iptables


@YaakovZiv 非云主机,idc 机房的,没有宝塔

@oneisall8955 非云主机
2023-01-03 17:11:46 +08:00
回复了 kestrelBright 创建的主题 程序员 求助 iptables 开放端口无效
@xuanbg 关了的
2023-01-03 09:21:37 +08:00
回复了 kestrelBright 创建的主题 程序员 求助 app 审核被拒,原因 other
@estk 老板的个人账号

@awanganddong 就商城类的 app

@f5a599 好的 谢谢
2022-12-30 17:00:20 +08:00
回复了 kestrelBright 创建的主题 程序员 求助 app 审核被拒,原因 other
从 3 号开始就这样,卡了马上一个月了
2022-12-29 14:07:07 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 15 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 4,260,597 [2.18 TB]
Data Units Written: 4,416,692 [2.26 TB]
Host Read Commands: 98,234,296
Host Write Commands: 83,191,880
Controller Busy Time: 0
Power Cycles: 281
Power On Hours: 73
Unsafe Shutdowns: 17
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-12-27 15:01:24 +08:00
回复了 kaliawngV2 创建的主题 OpenAI chatgpt 一个小时只能问一个问题吗?
一样,自己的 vps ,账号也自己申请的,问第二次就会提示被限制
2022-12-14 14:06:12 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬们源码编译安装后找不到命令
。。刚 ssh 断了,重连了下 cmake 命令就可以了。。。
2022-12-14 14:05:43 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬们源码编译安装后找不到命令
@ysc3839 centos7

@8675bc86 在 cmake 的源码目录可以执行./bin/cmake --version

@seers /usr/local/bin 里没执行文件 path 里有 /usr/local/bin 路径

@Huelse 安装到 /usr/local/share 里了,但 ls 看不到 cmake 执行文件
2022-12-09 11:25:42 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬其他语言如何调用 nacos 服务
@nekomiao 好的 谢谢
@xliao 谢谢 下次注意
2022-12-09 09:30:23 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬其他语言如何调用 nacos 服务
@mango88 能获取 nacos 里的 java 服务配置,但里面不会有 ip ,也只是告诉你 openfeign 调用
2022-12-09 09:28:01 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬其他语言如何调用 nacos 服务
@ajaxgoldfish 是要用 nacos 里的 其他 java 注册的服务
2022-12-09 09:27:29 +08:00
回复了 kestrelBright 创建的主题 程序员 求教大佬其他语言如何调用 nacos 服务
@xliao 不是要用 nacos ,是要用 nacos 里的 java 服务
2022-12-07 17:28:41 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 25 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 3,662,896 [1.87 TB]
Data Units Written: 3,806,656 [1.94 TB]
Host Read Commands: 82,839,929
Host Write Commands: 68,120,262
Controller Busy Time: 0
Power Cycles: 277
Power On Hours: 60
Unsafe Shutdowns: 17
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-29 20:24:08 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 28 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 3,424,994 [1.75 TB]
Data Units Written: 3,537,570 [1.81 TB]
Host Read Commands: 76,774,014
Host Write Commands: 61,973,921
Controller Busy Time: 0
Power Cycles: 276
Power On Hours: 55
Unsafe Shutdowns: 17
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-22 09:08:22 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 20 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 3,006,398 [1.53 TB]
Data Units Written: 3,154,006 [1.61 TB]
Host Read Commands: 66,188,395
Host Write Commands: 53,049,774
Controller Busy Time: 0
Power Cycles: 273
Power On Hours: 46
Unsafe Shutdowns: 16
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-12 09:59:14 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 29 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 2,623,108 [1.34 TB]
Data Units Written: 2,825,210 [1.44 TB]
Host Read Commands: 58,095,554
Host Write Commands: 45,461,879
Controller Busy Time: 0
Power Cycles: 269
Power On Hours: 38
Unsafe Shutdowns: 16
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-06 10:27:55 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 32 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 2,456,811 [1.25 TB]
Data Units Written: 2,665,606 [1.36 TB]
Host Read Commands: 53,057,296
Host Write Commands: 42,042,161
Controller Busy Time: 0
Power Cycles: 268
Power On Hours: 35
Unsafe Shutdowns: 16
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-03 20:01:07 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 31 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 2,400,146 [1.22 TB]
Data Units Written: 2,604,539 [1.33 TB]
Host Read Commands: 51,377,898
Host Write Commands: 40,434,009
Controller Busy Time: 0
Power Cycles: 268
Power On Hours: 33
Unsafe Shutdowns: 16
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
2022-11-01 09:45:57 +08:00
回复了 kestrelBright 创建的主题 Apple 请问 m1 读写量多少算正常?
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 32 Celsius
Available Spare: 100%
Available Spare Threshold: 99%
Percentage Used: 0%
Data Units Read: 2,325,716 [1.19 TB]
Data Units Written: 2,477,451 [1.26 TB]
Host Read Commands: 49,175,573
Host Write Commands: 37,751,790
Controller Busy Time: 0
Power Cycles: 268
Power On Hours: 31
Unsafe Shutdowns: 16
Media and Data Integrity Errors: 0
Error Information Log Entries: 0
1  2  3  4  5  6  7  8  9  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   933 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 21:39 · PVG 05:39 · LAX 14:39 · JFK 17:39
Developed with CodeLauncher
♥ Do have faith in what you're doing.