MrMike
V2EX  ›  CentOS

如何修改端口协议 tcp6 为 tcp?

  •  
  •   MrMike · Jan 1, 2018 · 10368 views
    This topic created in 3234 days ago, the information mentioned may be changed or developed.
    环境为 centos 7 64 位,用 netstat -ntlp,查询端口:
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
    tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
    tcp6 0 0 :::3306 :::* LISTEN -

    如何将 mysql 的 tcp6 改成 tcp 呢?
    4 replies  •  2018-01-01 22:23:04 +08:00
    yexm0
    yexm0
    Jan 1, 2018
    1
    禁掉 ipv6 的监听不就行了
    MrMike
    MrMike
    OP
    Jan 1, 2018
    2
    @yexm0 已经禁掉了,之前 80 端口也是 tcp6,禁掉重启后,80 端口好了,3306 还是没变。
    eslizn
    eslizn
    Jan 1, 2018
    3
    bind-address 不行吗?
    MrMike
    MrMike
    OP
    Jan 1, 2018
    4
    @eslizn 如何操作?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4146 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:01 · PVG 17:01 · LAX 01:01 · JFK 04:01
    ♥ Do have faith in what you're doing.