码迷,mamicode.com
首页 > 数据库 > 详细

lnmp mysql远程访问设置

时间:2016-11-17 13:36:18      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:uri   img   tab   技术分享   账号   security   png   ble   lnmp   

 一:iptables 设置开放3306访问

iptables -L -n --line-numbers

1,删除DROP 3306

iptables -D INPUT 5【序列号】

技术分享

 

2,添加 ACCEPT 3306 

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

----

27 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:3306

 

二:设置Mysql 账号运行远程访问

技术分享

 

参考资料:https://www.vpser.net/security/linux-iptables.html

lnmp mysql远程访问设置

标签:uri   img   tab   技术分享   账号   security   png   ble   lnmp   

原文地址:http://www.cnblogs.com/heheisme/p/6033989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!