- PHP7.0创建类时候创建构建函数不能使用类的名字要使用__construct( )
public function __construct(){}
- Thinkphp5.0取消了使用where(“id=’%d’”,$id)的书写方法使用新的书写方式
where("id",[$id])
centos从7开始默认用的是firewalld
centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。所以你只要停止firewalld服务即可:
sudo systemctl stop firewalld.service && sudo systemctl disable firewalld.service如果你要改用iptables的话,需要安装iptables服务:
sudo yum install iptables-services
sudo systemctl enable iptables && sudo systemctl enable ip6tables
sudo systemctl start iptables && sudo systemctl start ip6tables