阿里云默认centos7上怎么安装php

如题所述

CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。
1、关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
2、安装iptables防火墙
yum install iptables-services #安装
vi /etc/sysconfig/iptables #编辑防火墙配置文件
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-12-30
yum install php

兄弟用这个

第2个回答  2016-12-30
用yum试试。 关键字 centos yum 安装 php
相似回答