安装apache
yum -y install httpd
systemctl start httpd
安装php
yum -y install php php-mbstring php-pear
安装ssl模块
yum install httpd mod_ssl
在httpd目录下创建文件夹cert
mkdir cert
将证书文件下载到cert目录
wget http://7d9lp7.com1.z0.glb.clouddn.com/214473667220217.key
wget http://7d9lp7.com1.z0.glb.clouddn.com/214473667220217.pem
wget http://7d9lp7.com1.z0.glb.clouddn.com/chain.pem
wget http://7d9lp7.com1.z0.glb.clouddn.com/public.pem
修改httpd/conf.d/ssl.conf
# 证书公钥配置 SSLCertificateFile cert/public.pem # 证书私钥配置 SSLCertificateKeyFile cert/214473667220217.key # 证书链配置,如果该属性开头有 ‘#‘字符,请删除掉 SSLCertificateChainFile cert/chain.pem
安全组增加443端口