1、firewalld的基本使用
启动: systemctl start firewalld
查看状态: systemctl status firewalld
停止: systemctl disable firewalld
禁用: systemctl stop firewalld
添加
firewall-cmd --zone=public --add-port=80/tcp --permanent
标签:get release lam ref emc 拼接 remove tar detail
安装apache
vmware 先安装虚拟机
下载系统 centos 安装到虚拟机上
1.安装yum -y install httpd
2.开启apache服务systemctl start httpd.service
3.设置apache服务开机启动systemctl enable httpd.service
使用公网访问能看到apache就说明安装成功
安装php7
1.安装php7
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
2. 通过云进行php和其他组件的安装
yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
yum install php70w-fpm
安装mysql
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
查看
yum repolist enabled | grep "mysql.*-community.*"
安装mysql
yum -y install mysql-community-server
开机启动
systemctl enable mysqld
启动mysql服务
systemctl start mysqld
远程访问
GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘MyPassword‘ WITH GRANT OPTION;
FLUSH PRIVILEGES;
防火墙
标签:get release lam ref emc 拼接 remove tar detail
原文地址:http://www.cnblogs.com/qzq941031/p/7771438.html