Board logo

标题: 宝塔BT mysql绑定IP为127.0.0.1,防止外部连接3306端口 [打印本页]

作者: linda    时间: 2021-12-29 10:58     标题: 宝塔BT mysql绑定IP为127.0.0.1,防止外部连接3306端口

1)/etc/init.d/mysqld stop

2)在/etc/my.cnf 中 加 bind-address  = 127.0.0.1
[mysqld]
bind-address  = 127.0.0.1

3)/etc/init.d/mysqld start

4)netstat -nap|grep 3306

参考:
https://www.bt.cn/bbs/thread-3434-1-1.html
https://www.oppblog.com/archives/2625

[ 本帖最后由 linda 于 2021-12-29 11:00 编辑 ]




欢迎光临 中神通公司交流论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0