显示WordPress页面打开时长搜索引擎优化中的步骤包括

张小明 2026/1/17 6:57:08
显示WordPress页面打开时长,搜索引擎优化中的步骤包括,石家庄网站建设吧,长沙网络公司营销方案因主流的浏览器都要求以https的方式访问网站#xff0c;现有一些在用的网站架构是python django的#xff0c;故以此为例进行配置说明。用Nginx Gunicorn模式进行部署#xff0c;用acme.sh制作免费的ssl证书#xff0c;实现以https方式访问。1、django gunicorn 1.1、安装…因主流的浏览器都要求以https的方式访问网站现有一些在用的网站架构是python django的故以此为例进行配置说明。用Nginx Gunicorn模式进行部署用acme.sh制作免费的ssl证书实现以https方式访问。1、django gunicorn1.1、安装gunicornsource~/venv/bin/activate pipinstallgunicorn1.2、用到的wsgi.py[runygremoteserver GOAMAS]$catgoamas/wsgi.py WSGI configforgoamas project. It exposes the WSGI callable as a module-level variable named application. Formoreinformation on this file, see https://docs.djangoproject.com/en/5.2/howto/deployment/wsgi/importos from django.core.wsgiimportget_wsgi_application os.environ.setdefault(DJANGO_SETTINGS_MODULE,goamas.settings)applicationget_wsgi_application()1.3、启动gunicorn$cdproj/GOAMAS $ gunicorn goamas.wsgi:application\--bind unix:/opt/GOAMAS/gunicorn.sock\--workers3\--timeout1201.4、查看gunicorn服务情况[rootygremoteserver ~]# ps aux | grep gunicorn | grep -v greprun7047390.01.33224423648pts/2 S12:070:00 /app/run/venv/bin/python3.13 /app/run/venv/bin/gunicorn goamas.wsgi:application --bind0.0.0.0:8000 run7048180.04.123858470608pts/2 Sl13:020:01 /app/run/venv/bin/python3.13 /app/run/venv/bin/gunicorn goamas.wsgi:application --bind0.0.0.0:8000[rootygremoteserver ~]# ps -ef|grep gunicornrun704739704418012:07 pts/2 00:00:00 /app/run/venv/bin/python3.13 /app/run/venv/bin/gunicorn goamas.wsgi:application --bind0.0.0.0:8000 run704818704739013:02 pts/2 00:00:01 /app/run/venv/bin/python3.13 /app/run/venv/bin/gunicorn goamas.wsgi:application --bind0.0.0.0:80002、acme.sh安装2.1、下载acme.sh[rootygremoteserver ~]# wget https://get.acme.sh--2025-12-1621:51:34-- https://get.acme.sh/ Resolving get.acme.sh(get.acme.sh)...104.21.34.62,172.67.199.16,2606:4700:3031::ac43:c710,... Connecting to get.acme.sh(get.acme.sh)|104.21.34.62|:443... connected. HTTP request sent, awaiting response...200OK Length: unspecified[text/html]Saving to: ‘index.html’ index.html[]1.01K --.-KB/sin0s2025-12-1621:51:36(21.0MB/s)- ‘index.html’ saved[1032][rootygremoteserver ~]#[rootygremoteserver ~]# mv index.html acme.sh2.2、acme.sh的内容[rootygremoteserver ~]# cat acme.sh#!/usr/bin/env sh#https://github.com/acmesh-official/get.acme.sh_exists(){cmd$1if[-z$cmd];thenechoUsage: _exists cmdreturn1fiiftypecommand/dev/null21;thencommand-v$cmd/dev/null21elsetype$cmd/dev/null21firet$?return$ret}if[-z$BRANCH];thenBRANCHmasterfi#format emailmyexample.com_email$1if[$_email];thenshift_email--$(echo$_email|tr )fi_urlhttps://raw.githubusercontent.com/acmesh-official/acme.sh/$BRANCH/acme.sh_getif_existscurl[${ACME_USE_WGET:-0}0];then_getcurl -Lelif_existswget;then_getwget -O -elseechoSorry, you must have curl or wget installed first.echoPlease install either of them and try again.exit1fiif!$_get$_url|sh-s -- --install-online$_email$;thenechoInstall errorecho中国大陆用户请参考:echohttps://github.com/acmesh-official/acme.sh/wiki/Install-in-Chinafi2.3、执行acme.sh进行安装[rootygremoteserver ~]# sh acme.sh% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed100226k100226k001213200:00:190:00:19 --:--:--2973[Tue Dec1609:52:51 PM CST2025]Installing from online archive.[Tue Dec1609:52:51 PM CST2025]Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz[Tue Dec1609:52:52 PM CST2025]Extracting master.tar.gz[Tue Dec1609:52:52 PM CST2025]It is recommended toinstallsocat first.[Tue Dec1609:52:52 PM CST2025]We use socatforthe standalone server,whichis usedforstandalone mode.[Tue Dec1609:52:52 PM CST2025]If you dont want to use standalone mode, you may ignore this warning. [Tue Dec 16 09:52:52 PM CST 2025] Installing to /root/.acme.sh [Tue Dec 16 09:52:52 PM CST 2025] Installed to /root/.acme.sh/acme.sh [Tue Dec 16 09:52:52 PM CST 2025] Installing alias to /root/.bashrc [Tue Dec 16 09:52:52 PM CST 2025] Close and reopen your terminal to start using acme.sh [Tue Dec 16 09:52:53 PM CST 2025] Installing alias to /root/.cshrc [Tue Dec 16 09:52:53 PM CST 2025] Installing alias to /root/.tcshrc[Tue Dec1609:52:53 PM CST2025]Installingcronjob nocrontabforroot nocrontabforroot[Tue Dec1609:52:53 PM CST2025]bashhas been found. Changing the shebang to usebashas preferred.[Tue Dec1609:52:55 PM CST2025]OK[Tue Dec1609:52:55 PM CST2025]Install success![rootygremoteserver ~]# source ~/.bashrc2.4、acme.sh初始化[rootygremoteserver ~]# acme.sh --remove -d www.a100.fun[Tue Dec1610:00:42 PM CST2025]The domainwww.a100.funseems to already have an ECC cert,lets use it. [Tue Dec 16 10:00:42 PM CST 2025] www.a100.fun has been removed. The key and cert files are in /root/.acme.sh/www.a100.fun_ecc [Tue Dec 16 10:00:42 PM CST 2025] You can remove them by yourself. [rootygremoteserver ~]# [rootygremoteserver ~]# acme.sh --register-account -m testfoxmail.com [Tue Dec 16 10:03:17 PM CST 2025] Registering account: https://acme.zerossl.com/v2/DV90 [Tue Dec 16 10:03:20 PM CST 2025] Already registered [Tue Dec 16 10:03:20 PM CST 2025] ACCOUNT_THUMBPRINTZojJOwit7T11111111111111111ODMohhxr60dZc[rootygremoteserver ~]#[rootygremoteserver ~]# acme.sh --set-default-ca --server letsencrypt[Tue Dec1610:03:45 PM CST2025]Changed default CA to: https://acme-v02.api.letsencrypt.org/directory[rootygremoteserver ~]#2.5、用acme.sh生成https要用到的证书文件[rootygremoteserver ~]# acme.sh --issue -d www.a100.fun --nginx[Tue Dec1610:08:10 PM CST2025]Using CA: https://acme-v02.api.letsencrypt.org/directory[Tue Dec1610:08:10 PM CST2025]Singledomainwww.a100.fun[Tue Dec1610:08:14 PM CST2025]Getting webrootfordomainwww.a100.fun[Tue Dec1610:08:14 PM CST2025]Verifying: www.a100.fun[Tue Dec1610:08:14 PM CST2025]Nginx modefordomain: www.a100.fun[Tue Dec1610:08:14 PM CST2025]Found config file: /etc/nginx/conf.d/goamas.conf[Tue Dec1610:08:14 PM CST2025]Backing /etc/nginx/conf.d/goamas.conf up to /root/.acme.sh/www.a100.fun_ecc/backup/www.a100.fun.nginx.conf[Tue Dec1610:08:14 PM CST2025]Checking the nginx config before setting up.[Tue Dec1610:08:14 PM CST2025]OK, setting up the nginx configfile[Tue Dec1610:08:14 PM CST2025]nginx config has been written,lets check it again. [Tue Dec 16 10:08:15 PM CST 2025] Reloading nginx [Tue Dec 16 10:08:18 PM CST 2025] Pending. The CA is processing your order, please wait. (1/30) [Tue Dec 16 10:08:25 PM CST 2025] Pending. The CA is processing your order, please wait. (2/30) [Tue Dec 16 10:08:31 PM CST 2025] Pending. The CA is processing your order, please wait. (3/30) [Tue Dec 16 10:08:35 PM CST 2025] Success [Tue Dec 16 10:08:35 PM CST 2025] Restoring from /root/.acme.sh/www.a100.fun_ecc/backup/www.a100.fun.nginx.conf to /etc/nginx/conf.d/goamas.conf [Tue Dec 16 10:08:35 PM CST 2025] Reloading nginx [Tue Dec 16 10:08:35 PM CST 2025] Verification finished, beginning signing. [Tue Dec 16 10:08:35 PM CST 2025] Lets finalize the order.[Tue Dec1610:08:35 PM CST2025]Le_OrderFinalizehttps://acme-v02.api.letsencrypt.org/acme/finalize/2883432376/459431990706[Tue Dec1610:08:37 PM CST2025]Downloading cert.[Tue Dec1610:08:37 PM CST2025]Le_LinkCerthttps://acme-v02.api.letsencrypt.org/acme/cert/058b24d3ef579b9998c09d7a4d80689668f6[Tue Dec1610:08:41 PM CST2025]Cert success. -----BEGIN CERTIFICATE----- MIIDhjCCAwygAwIBAg555555555555555555555555555555555555555AMDMDIx CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQDEwJF NzAeFw0yNTEyMTY6666666666666666666666666666666666666666VBAMTDHd3 dy5hMTAwLmZ1bjBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABK1h9IzkfXeq2tbf MQ2WwHzP7Arm6DgCyMbmkuH1WB4lb3nNmkmbEFVVjgmliVRB47izK06wCbRtgV WA3cj3ijggIbMIICFzAOBgNVHQ8BAf8EBAMCB4AwHQYDVR0lBBYwFAYIKwYBBQUH AwEGC1111111111111111111111111111111111111111111111111idiji13ygn CT004d72azLEMB8GA1UdIwQYMBaAFK5IntyHHUSgb9qi5WB0BHjCnACAMDIGCCsG AQUFBwEBBCYwJDAiBggrBgEFBQcwAoYWaHR0cDovL2U3LmkubGVuY3Iub3JnLzAX BgNVHREEEDAOggx3d3cuYTEwMC5mdW4wEwYDVR0gBAwwCjAIBgZngQwBAgEwLgYD VR0fBCcwJTAjoCGgH4YdaHR0cDovL2U3LmMubGVuY3Iub3JnLzExOS5jcmwwggEE BgorBgEEAdZ5AgQCBIH12222222222222222222222222222222222221B41J6vq /tUDyX3N8AAAAZsnfdYVAAAEAwBGMEQCIAhsSuck0sLduJ1cKj2zdc0UUBcSejrX B1sI2ZMIwAcnAiAqmY55bDiTNQ9VKE6LphaqEOkXmy8Q47QAkYV/jfpPQB3AMs4 9xWJ333333333333333333333333333333333333333333333jMAAAQDAEgwRgIh AP8IMDrILJFlan3aswcmI2xZgiwLTXdvD6Lj0Hbu6HtAiEAzxIKOUJXFpW6ljCW fSDHwcJemaxBZQIq62zHAVg1sIwCgYIKoZIzj0EAwMDaAAwZQIxALk4coLk1PZ 8Cw6MQyjOozTPVC0aHBB9613Dcly2QJnDL3FIASeEAKRvzmYNHfwIwYF5sENGE pRtFBj46nlfHv0RiF8OIGudQq3tTEXBK5KxnwemXU7eV3dAfmI9NJ -----END CERTIFICATE-----[Tue Dec1610:08:41 PM CST2025]Your cert is in: /root/.acme.sh/www.a100.fun_ecc/www.a100.fun.cer[Tue Dec1610:08:41 PM CST2025]Your cert key is in: /root/.acme.sh/www.a100.fun_ecc/www.a100.fun.key[Tue Dec1610:08:41 PM CST2025]The intermediate CA cert is in: /root/.acme.sh/www.a100.fun_ecc/ca.cer[Tue Dec1610:08:41 PM CST2025]And the full-chain cert is in: /root/.acme.sh/www.a100.fun_ecc/fullchain.cer[rootygremoteserver ~]# ls /root/.acme.sh/www.a100.fun_ecc/fullchain.cer/root/.acme.sh/www.a100.fun_ecc/fullchain.cer[rootygremoteserver ~]#[rootygremoteserver ~]# mkdir -p /etc/nginx/ssl/www.a100.fun[rootygremoteserver ~]#[rootygremoteserver ~]#[rootygremoteserver ~]# acme.sh --install-cert -d www.a100.fun \--key-file /etc/nginx/ssl/www.a100.fun/privkey.pem\--fullchain-file /etc/nginx/ssl/www.a100.fun/fullchain.pem\--reloadcmdsystemctl reload nginx[Wed Dec1712:03:43 PM CST2025]The domainwww.a100.funseems to already have an ECC cert, lets use it.[Wed Dec1712:03:43 PM CST2025]Installing key to: /etc/nginx/ssl/www.a100.fun/privkey.pem[Wed Dec1712:03:43 PM CST2025]Installing full chain to: /etc/nginx/ssl/www.a100.fun/fullchain.pem[Wed Dec1712:03:43 PM CST2025]Running reload cmd: systemctl reload nginx[rootygremoteserver ~]# ls -lh /etc/nginx/ssl/www.a100.fun/total8.0K -rw-r--r--1root root2.8K Dec1712:03 fullchain.pem -rw-------1root root227Dec1712:03 privkey.pem3、nginx3.1、nginx调gunicorn.sock文件目录创建有用到proxy_pass http://unix:/opt/GOAMAS/gunicorn.sock;所以mkdir -p /opt/GOAMASchown run:nginx /opt/GOAMAS3.2、授予访问static的权限改web工程所放用户的700为755即可。chmod 755 /app/run3.3、nginx配置文件 /etc/nginx/conf.d/goamas.conf# HTTP统一跳转到 HTTPSserver{listen80;server_name www.a100.fun a100.fun;return301https://www.a100.fun$request_uri;}# HTTPS 主站server{listen443ssl http2;server_name www.a100.fun;ssl_certificate /etc/nginx/ssl/www.a100.fun/fullchain.pem;ssl_certificate_key /etc/nginx/ssl/www.a100.fun/privkey.pem;ssl_protocols TLSv1.2 TLSv1.3;ssl_prefer_server_ciphers on;# Django 静态文件location /static/{alias/app/run/proj/GOAMAS/staticfiles/;access_log off;expires 30d;}# Django 反向代理location /{proxy_pass http://unix:/opt/GOAMAS/gunicorn.sock;proxy_set_header Host$host;proxy_set_header X-Real-IP$remote_addr;proxy_set_header X-Forwarded-For$proxy_add_x_forwarded_for;proxy_set_header X-Forwarded-Proto https;proxy_redirect off;}}3.4、nginx启动[rootygremoteserver ~]# nginx -tnginx: the configurationfile/etc/nginx/nginx.conf syntax is ok nginx: configurationfile/etc/nginx/nginx.conftestis successful[rootygremoteserver ~]# systemctl reload ngin3.5、查看nginx运行情况[rootygremoteserver app]# netstat -an|grep 443tcp000.0.0.0:4430.0.0.0:* LISTEN[rootygremoteserver opt]# tail -f /var/log/nginx/error.log2025/12/18 03:04:36[crit]704724#704724: *667 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 206.168.34.39, server: 0.0.0.0:4432025/12/18 06:18:19[crit]704724#704724: *748 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 156.229.21.54, server: 0.0.0.0:4432025/12/18 09:12:57[crit]704724#704724: *823 SSL_do_handshake() failed (SSL: error:0A00006C:SSL routines::bad key share) while SSL handshaking, client: 185.242.226.119, server: 0.0.0.0:4433.6、效果https能正常打开网站
版权声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

广州市哪有做网站的鄞州seo服务

文章目录基于springboot的实习管理系统一、项目简介(源代码在文末)1.运行视频2.🚀 项目技术栈3.✅ 环境要求说明4.包含的文件列表(含论文)前台运行截图后台运行截图项目部署源码下载基于springboot的实习管理系统 如需…

张小明 2026/1/7 22:26:43 网站建设

山东网站建设制作公司上海响应式网站建设费用

快速体验 打开 InsCode(快马)平台 https://www.inscode.net输入框内输入如下内容: 创建一个交互式新手教程,引导用户完成VMware Workstation 17 Pro的安装和基本配置。教程应包括分步指导、视频演示和常见问题解答,并提供模拟环境供用户练习…

张小明 2025/12/31 4:55:18 网站建设

做网站的启蒙思想网站栏目类型

GET请求乱码 GET请求方式乱码分析 GET方式提交参数的方式是将 编写如下servlet 使用表单方式提交参数 编写index.html 启动tomcat 此时并未出现乱码 如果修改如下编码方式为GBK 可以看到请求行中只有四个字节(GBK中,一个汉字对应两个字节&#xff0…

张小明 2026/1/9 11:27:30 网站建设

网站通常用什么编程做短网址服务平台

核心工具对比速览 工具名称 核心功能 适用场景 处理速度 特色优势 aibiye 降AIGC率查重 学术论文优化 20分钟 适配知网/格子达/维普规则 aicheck AIGC检测 风险区域识别 实时 可视化热力图报告 askpaper 学术内容优化 论文降重 20分钟 保留专业术语 秒篇 …

张小明 2026/1/6 2:50:51 网站建设

无锡网站设计网站湖南网站推广电话

文章目录 0 前言1 项目运行效果2 设计概要3 设计框架4 最后 0 前言 🔥这两年开始毕业设计和毕业答辩的要求和难度不断提升,传统的毕设题目缺少创新和亮点,往往达不到毕业答辩的要求,这两年不断有学弟学妹告诉学长自己做的项目系统…

张小明 2025/12/31 16:21:54 网站建设

江苏省建设信息网站做浏览单的网站

嵌入式设备开发周期与应用部署全解析 1. 嵌入式设备开发周期概述 嵌入式设备的开发周期与标准应用的部署有很大不同。了解这个开发过程,能让我们明白为何在嵌入式设备上部署应用如此特殊。整个过程通常呈现为瀑布式设计流程,但实际上,除了制造环节(除非是内部制造),其他…

张小明 2026/1/8 19:16:29 网站建设