1-确保环境已经部署SSL模块//检查是否安装ssl httpd -M | grep ssl//安装mod和opensslyum install opensslyum install mod_ssl2-检查和启动sslcd /etc/httpd/conf.d/3-引入ssl配置，在http.conf去掉下面的注释Include conf/extra/httpd-ssl.conf4-虚拟vhost配置 DocumentRoot /home/www/wwwroot/zhibo ServerName zhibo.kinmor.com:443 SetEnv no-gzip SSLEngine on SSLCertificateFile "/etc/letsencrypt/live/kinmor.com/fullchain.pem" SSLCertificateKeyFile "/etc/letsencrypt/live/kinmor.com/privkey.pem" SetOutputFilter DEFLATE Options FollowSymLinks AllowOverride All Order Deny,Allow Require all granted DirectoryIndex index.php index.html index.htm 5-重启httpdservice httpd restart