查域名 查whois
搜索

在线客服 ( 09:00-22:30 )

帮助中心

Nginx installs an SSL certificate (CentOS7.x)

更新时间:2022-03-09  浏览次数:49850次

1.Download the Nginx type SSL certificate from this site and unzip it:

2.Log in to the CentOS7.x system, create a certificate directory, and upload the certificate file to the certificate directory.

3.Modify the Nginx configuration file.

Press the i key to enter the edit mode, find the server attribute configuration in nginx.conf, and delete the front #

Press the ESC key to exit the editing mode, enter :wq to save and exit, and restart the nginx service.

Notice:

1.The server firewall needs to open port 443. If it is hosted on Amazon, Google Cloud and other service providers, you need to log in to the service provider console to open port 443.

2.Before restarting Nginx, it is recommended to test whether the configuration file is OK. Enter the command nginx -t to test. If /usr/local/nginx/conf/nginx.conf test is successful is displayed, it means that there is no problem with the configuration and you can restart it safely.

 

当前系统时间:2024-12-22 11:23:01(UTC+8) 注册人权利与责任注册人教育信息隐私政策

© 2024 九名国际(9MGJ.COM) 版权所有,保留所有权利