[root@VM-12-5-centos ~]# nginx -t nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful
创建证书文件夹
1
mkdir /www/wwwroot/ssl
上传证书至服务器
sftp 宝塔 ssh工具等。上传至/www/wwwroot/ssl
1 2 3
[root@VM-12-5-centos ~]# cd /www/wwwroot/ssl [root@VM-12-5-centos ssl]# ls 7750907_zhenghaoxuan.com.key 7750907_zhenghaoxuan.com.pem
[root@VM-12-5-centos ssl]# nginx -t nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok nginx: configuration file /www/server/nginx/conf/nginx.conf test is successful