物联网是指连接在一起的物理设备、车辆、家居设备和其他设备,使它们能够收集和交换数据。物联网在各个行业中都有广泛的应用,包括智能家居、智能交通、智能医疗等。而物联网的应用开发则需要涉及到多个技术领域,如传感器技术、网络通信技术、云计算技术等。山西物联网app
2024-01-10
中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等
| Nginx安装SSL证书 Nginx配置https证书 首先拿到Nginx服务器证书 |
yourdomain.com.crt (服务器证书)
yourdomain.com.key (私钥文件)如果为空请将生成CSR时保存的私钥内容粘贴在文件中环境检测,检测命令如下(测试nginx是否支持SSL)
nginx -V如果有显示 –with-http_ssl_module 表示已编译openssl,支持安装ssl;
如果没有安装请下载nginx源码重新编译;
./configure --with-http_stub_status_module --with-http_ssl_module
make && make install配置Nginx
server {
listen 80;
listen 443 ssl;
server_name www.yourdomain.com;
ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
ssl_certificate /etc/ssl/yourdomain.com.crt;
ssl_certificate_key /etc/ssl/yourdomain.com.key;
ssl_prefer_server_ciphers on;
#自动跳转到HTTPS (可选)
if ($server_port = 80) {
rewrite ^(.*)$ https://$host$1 permanent;
}
location / {
root /home/yourdomain/;
index index.php;
}
}请将域名修改为您自己的
以上配置仅供参考,其他参数请根据生产环境需要添加。安装后重启nginx使其生效
centos6
service nginx restart
centos7
systemctl restart nginx