返回顶部
扩大
缩小

Gaidy's

2019年4月12日

centos7防火墙导致不能访问的

摘要: CentOS 7.0默认使用的是firewall作为防火墙,使用iptables必须重新设置一下 1、直接关闭防火墙 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewal 阅读全文

posted @ 2019-04-12 16:35 Gaidy 阅读(1198) 评论(0) 推荐(0)

pymysql的使用

摘要: import pymysql #打开数据库 (如果连接失败会报错)#db = pymysql.connect(host = '127.0.0.1', port = 3306, user = 'minbo', passwd = '123456', db = 'pythontest')db = pymy 阅读全文

posted @ 2019-04-12 11:36 Gaidy 阅读(296) 评论(0) 推荐(0)

导航