专业网页制作网站推广公司/清理优化大师

专业网页制作网站推广公司,清理优化大师,品牌建设之法律权益战略,搜不到自己的网站编写docker-compose文件 mkdir -p /data/onlyoffice && echo "version: 3services:onlyoffice:container_name: OnlyOfficeimage: onlyoffice/documentserver:8.3.0restart: alwaysports:- 8088:80- 64431:443environment:TZ: Asia/ShanghaiJWT_ENABLED: falsevol…

编写docker-compose文件


mkdir -p /data/onlyoffice && echo "version: '3'services:onlyoffice:container_name: OnlyOfficeimage: onlyoffice/documentserver:8.3.0restart: alwaysports:- 8088:80- 64431:443environment:TZ: Asia/ShanghaiJWT_ENABLED: 'false'volumes:- ./app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice- ./app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data- ./app/onlyoffice/DocumentServer/lib:/var/lib/onlyoffice- ./app/onlyoffice/DocumentServer/db:/var/lib/postgresql- ./certs:/etc/onlyoffice/certs- ./certs/ds.conf:/etc/onlyoffice/documentserver/nginx/ds.conf- ./default.json:/etc/onlyoffice/documentserver/default.json" > /data/onlyoffice/docker-compose.yml && echo '{"statsd": {"useMetrics": false,"host": "localhost","port": "8125","prefix": "ds."},"log": {"filePath": "","options": {"replaceConsole": true}},"queue": {"type": "rabbitmq","visibilityTimeout": 300,"retentionPeriod": 900},"email": {"smtpServerConfiguration": {"host": "localhost","port": 587,"auth": {"user": "","pass": ""}},"connectionConfiguration": {"disableFileAccess": false,"disableUrlAccess": false},"contactDefaults": {"from": "from@example.com","to": "to@example.com"}},"notification": {"rules": {"licenseExpirationWarning": {"enable": false,"transportType": ["email"],"template": {"title": "%s Docs license expiration warning","body": "Attention! Your license is about to expire on %s.\nUpon reaching this date, you will no longer be entitled to receive personal technical support and install new Docs versions released after this date."},"policies": {"repeatInterval": "1d"}},"licenseExpirationError": {"enable": false,"transportType": ["email"],"template": {"title": "%s Docs license expiration warning","body": "Attention! Your license expired on %s.\nYou are no longer entitled to receive personal technical support and install new Docs versions released after this date.\nPlease contact sales@onlyoffice.com to discuss license renewal."},"policies": {"repeatInterval": "1d"}},"licenseLimitEdit": {"enable": false,"transportType": ["email"],"template": {"title": "%s Docs license connection limit warning","body": "Attention! You have reached %s%% of the %s limit set by your license."},"policies": {"repeatInterval": "1h"}},"licenseLimitLiveViewer": {"enable": false,"transportType": ["email"],"template": {"title": "%s Docs license connection limit warning","body": "Attention! You have reached %s%% of the live viewer %s limit set by your license."},"policies": {"repeatInterval": "1h"}}}},"storage": {"name": "storage-fs","fs": {"folderPath": "","urlExpires": 900,"secretString": "verysecretstring"},"region": "","endpoint": "http://localhost/s3","bucketName": "cache","storageFolderName": "files","cacheFolderName": "data","urlExpires": 604800,"accessKeyId": "AKID","secretAccessKey": "SECRET","sslEnabled": true,"s3ForcePathStyle": true,"externalHost": ""},"persistentStorage": {},"rabbitmq": {"url": "amqp://localhost:5672","socketOptions": {},"exchangepubsub": {"name": "ds.pubsub","options": {"durable": true}},"queuepubsub": {"name": "","options": {"autoDelete": true,"exclusive": true,"arguments": {"x-queue-type": "classic"}}},"queueconverttask": {"name": "ds.converttask6","options": {"durable": true,"maxPriority": 6,"arguments": {"x-queue-type": "classic"}}},"queueconvertresponse": {"name": "ds.convertresponse","options": {"durable": true,"arguments": {"x-queue-type": "classic"}}},"exchangeconvertdead": {"name": "ds.exchangeconvertdead","options": {"durable": true}},"queueconvertdead": {"name": "ds.convertdead","options": {"durable": true,"arguments": {"x-queue-type": "classic"}}},"queuedelayed": {"name": "ds.delayed","options": {"durable": true,"arguments": {"x-queue-type": "classic"}}}},"activemq": {"connectOptions": {"port": 5672,"host": "localhost","reconnect": false},"queueconverttask": "ds.converttask","queueconvertresponse": "ds.convertresponse","queueconvertdead": "ActiveMQ.DLQ","queuedelayed": "ds.delayed","topicpubsub": "ds.pubsub"},"dnscache": {"enable" : true,"ttl" : 300,"cachesize" : 1000},"openpgpjs": {"config": {},"encrypt": {"passwords": ["verysecretstring"]},"decrypt": {"passwords": ["verysecretstring"]}},"aesEncrypt": {"config": {"keyByteLength": 32,"saltByteLength": 64,"initializationVectorByteLength": 16,"iterationsByteLength": 5},"secret": "verysecretstring"},"bottleneck": {"getChanges": {}},"win-ca": {"inject": "+"},"wopi": {"enable": false,"host" : "","htmlTemplate" : "../../web-apps/apps/api/wopi","wopiZone" : "external-http","favIconUrlWord" : "/web-apps/apps/documenteditor/main/resources/img/favicon.ico","favIconUrlCell" : "/web-apps/apps/spreadsheeteditor/main/resources/img/favicon.ico","favIconUrlSlide" : "/web-apps/apps/presentationeditor/main/resources/img/favicon.ico","favIconUrlPdf" : "/web-apps/apps/pdfeditor/main/resources/img/favicon.ico","favIconUrlDiagram" : "/web-apps/apps/visioeditor/main/resources/img/favicon.ico","fileInfoBlockList" : ["FileUrl"],"pdfView": ["djvu", "xps", "oxps"],"pdfEdit": ["pdf"],"forms": ["pdf"],"wordView": ["doc", "dotm", "dot", "fodt", "ott", "rtf", "mht", "mhtml", "html", "htm", "xml", "epub", "fb2", "sxw", "stw", "wps", "wpt", "pages", "docxf", "oform"],"wordEdit": ["docx", "dotx", "docm", "odt", "txt"],"cellView": ["xls", "xlsb", "xltm", "xlt", "fods", "ots", "sxc", "xml", "et", "ett", "numbers"],"cellEdit": ["xlsx", "xltx", "xlsm", "ods", "csv"],"slideView": ["ppt", "ppsx", "ppsm", "pps", "potm", "pot", "fodp", "otp", "sxi", "dps", "dpt", "key"],"slideEdit": ["pptx", "potx", "pptm", "odp"],"diagramView": [],"diagramEdit": [],"publicKey": "","modulus": "","exponent": 65537,"privateKey": "","publicKeyOld": "","modulusOld": "","exponentOld": 65537,"privateKeyOld": "","refreshLockInterval": "10m","dummy" : {"enable": false,"sampleFilePath": ""}},"tenants": {"baseDir": "","baseDomain": "","filenameConfig": "config.json","filenameSecret": "secret.key","filenameLicense": "license.lic","defaultTenant": "localhost","cache" : {"stdTTL": 300,"checkperiod": 60,"useClones": false}},"externalRequest": {"directIfIn" : {"allowList": [],"jwtToken": true},"action": {"allow": true,"blockPrivateIP": true,"proxyUrl": "","proxyUser": {"username": "","password": ""},"proxyHeaders": {}}},"services": {"CoAuthoring": {"server": {"port": 8000,"workerpercpu": 1,"mode": "development","limits_tempfile_upload": 104857600,"limits_image_size": 26214400,"limits_image_download_timeout": {"connectionAndInactivity": "2m","wholeCycle": "2m"},"callbackRequestTimeout": {"connectionAndInactivity": "10m","wholeCycle": "10m"},"healthcheckfilepath": "../public/healthcheck.docx","savetimeoutdelay": 5000,"edit_singleton": false,"forgottenfiles": "forgotten","forgottenfilesname": "output","maxRequestChanges": 20000,"openProtectedFile": true,"isAnonymousSupport": true,"editorDataStorage": "editorDataMemory","editorStatStorage": "","assemblyFormatAsOrigin": true,"newFileTemplate" : "../../document-templates/new","downloadFileAllowExt": ["pdf", "xlsx"],"tokenRequiredParams": true,"forceSaveUsingButtonWithoutChanges": false},"requestDefaults": {"headers": {"User-Agent": "Node.js/6.13","Connection": "Keep-Alive"},"gzip": true,"rejectUnauthorized": true},"autoAssembly": {"enable": false,"interval": "5m","step": "1m"},"utils": {"utils_common_fontdir": "null","utils_fonts_search_patterns": "*.ttf;*.ttc;*.otf","limits_image_types_upload": "jpg;jpeg;jpe;png;gif;bmp;svg;tiff;tif"},"sql": {"type": "postgres","tableChanges": "doc_changes","tableResult": "task_result","dbHost": "localhost","dbPort": 5432,"dbName": "onlyoffice","dbUser": "onlyoffice","dbPass": "onlyoffice","charset": "utf8","connectionlimit": 10,"max_allowed_packet": 1048575,"pgPoolExtraOptions": {"idleTimeoutMillis": 30000,"maxLifetimeSeconds ": 60000,"statement_timeout ": 60000,"query_timeout  ": 60000,"connectionTimeoutMillis": 60000},"damengExtraOptions": {"columnNameUpperCase": false,"columnNameCase": "lower","connectTimeout": 60000,"loginEncrypt": false,"localTimezone": 0,"poolTimeout": 60,"socketTimeout": 60000,"queueTimeout": 60000},"oracleExtraOptions": {"connectTimeout": 60},"msSqlExtraOptions": {"options": {"encrypt": false,"trustServerCertificate": true},"pool": {"idleTimeoutMillis": 30000}},"mysqlExtraOptions": {"connectTimeout": 60000,"queryTimeout": 60000}},"redis": {"name": "redis","prefix": "ds:","host": "127.0.0.1","port": 6379,"options": {},"optionsCluster": {},"iooptions": {"lazyConnect": true},"iooptionsClusterNodes": [],"iooptionsClusterOptions": {"lazyConnect": true}},"pubsub": {"maxChanges": 1000},"expire": {"saveLock": 60,"presence": 300,"locks": 604800,"changeindex": 86400,"lockDoc": 30,"message": 86400,"lastsave": 604800,"forcesave": 604800,"forcesaveLock": 5000,"saved": 3600,"documentsCron": "0 */2 * * * *","files": 86400,"filesCron": "00 00 */1 * * *","filesremovedatonce": 100,"sessionidle": "1h","sessionabsolute": "30d","sessionclosecommand": "2m","pemStdTTL": "1h","pemCheckPeriod": "10m","updateVersionStatus": "5m","monthUniqueUsers": "1y"},"ipfilter": {"rules": [{"address": "*", "allowed": true}],"useforrequest": false,"errorcode": 403},"request-filtering-agent" : {"allowPrivateIPAddress": true,"allowMetaIPAddress": true},"secret": {"browser": {"string": "secret", "file": ""},"inbox": {"string": "secret", "file": ""},"outbox": {"string": "secret", "file": ""},"session": {"string": "secret", "file": ""}},"token": {"enable": {"browser": false,"request": {"inbox": false,"outbox": false}},"browser": {"secretFromInbox": true},"inbox": {"header": "Authorization","prefix": "Bearer ","inBody": false},"outbox": {"header": "Authorization","prefix": "Bearer ","algorithm": "HS256","expires": "5m","inBody": false,"urlExclusionRegex": ""},"session": {"algorithm": "HS256","expires": "30d"},"verifyOptions": {"clockTolerance": 60}},"plugins": {"uri": "/sdkjs-plugins","autostart": []},"themes": {"uri": "/web-apps/apps/common/main/resources/themes"},"editor":{"spellcheckerUrl": "","reconnection":{"attempts": 50,"delay": "2s"},"binaryChanges": false,"websocketMaxPayloadSize": "1.5MB","maxChangesSize": "150MB"},"sockjs": {"sockjs_url": "","disable_cors": true,"websocket": true},"socketio": {"connection": {"path": "/doc/","serveClient": false,"pingTimeout": 20000,"pingInterval": 25000,"maxHttpBufferSize": 1e8}},"callbackBackoffOptions": {"retries": 0,"timeout":{"factor": 2,"minTimeout": 1000,"maxTimeout": 2147483647,"randomize": false},"httpStatus": "429,500-599"}}},"license" : {"license_file": "","warning_limit_percents": 70,"packageType": 0,"warning_license_expiration": "30d"},"FileConverter": {"converter": {"maxDownloadBytes": 104857600,"downloadTimeout": {"connectionAndInactivity": "2m","wholeCycle": "2m"},"downloadAttemptMaxCount": 3,"downloadAttemptDelay": 1000,"maxprocesscount": 1,"fontDir": "null","presentationThemesDir": "null","x2tPath": "null","docbuilderPath": "null","args": "","spawnOptions": {},"errorfiles": "","streamWriterBufferSize": 8388608,"maxRedeliveredCount": 2,"inputLimits": [{"type": "docx;dotx;docm;dotm","zip": {"uncompressed": "50MB","template": "*.xml"}},{"type": "xlsx;xltx;xlsm;xltm","zip": {"uncompressed": "300MB","template": "*.xml"}},{"type": "pptx;ppsx;potx;pptm;ppsm;potm","zip": {"uncompressed": "50MB","template": "*.xml"}}]}}
}
' > /data/onlyoffice/default.json && mkdir -p /data/onlyoffice/certs && cd /data/onlyoffice/certs && echo 'include /etc/nginx/includes/http-common.conf;
server {listen 0.0.0.0:80;listen [::]:80 default_server;server_tokens off;set $secure_link_secret ;include /etc/nginx/includes/ds-*.conf;
}
server {listen 443 ssl;listen [::]:443;server_name localhost;ssl_certificate /etc/onlyoffice/certs/onlyoffice.crt;ssl_certificate_key /etc/onlyoffice/certs/onlyoffice.key;ssl_session_cache shared:SSL:1m;ssl_session_timeout 5m;ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_prefer_server_ciphers on;server_tokens off;set $secure_link_secret ;include /etc/nginx/includes/ds-*.conf;
}' > ds.conf && echo '-----BEGIN CERTIFICATE-----
MIIFATCCA+mgAwIBAgISBCJAwtsL2l5x1rHhX7tj3dytMA0GCSqGSIb3DQEBCwUA
MDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmN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LdIRdyU5RCbfnA
Dah3qNKuNRPBHQdRen3hC30TcD9zm/Il9plZDa8/v4mct6IoNl1MP4PKX2XcpYwc
pcIkZlD2Kv2NL0rJ/mf/Ru1XpwKBgQDbfezcn7ixoxqKKYAa7sxDfLjEIfsiWApT
RESgGkABJr/Q4+KvTxjQMgtF35VgRJLxgOkurGQVXwJRLI4W4qFkcYu/Xv9rVTTn
ZJjRtFP69p1JXPtNKwLOdQDE5Ysz8MOXtxRE5iuPsYf4mzGkEWHXcHndynJ7w1hN
sqUSUVNz6QKBgQDJotTsfy0QVUq2dQ1d19RBgcrhmR1rGqyfKfGe4Jji9a37dSDS
KyNOd6Qsg+FL90/yjiKEt0JltLYAIRI3WQrbf6hoH4HPmi0m4BsLw63JeCS8cwpm
zO9m1t/U+vXY6i36SW9DoMIB4IiCorBe+r+ThSBmedop7N9UFgkOucVdawKBgQDH
zx6syQnNS/mBBL6FxhVU6lkY0wZXAWaE3oTKapsRcUD03D8j8BFalfQFK8BD3qkW
CJA92NlTSyZE1xaSZsUdNvBMyiIih3KdosorPMmmkJImkuqCGUF4yLJmi7/pDKhB
mHxvLElDig2Jl13dSaWUBeQqr30AhZgBQztaLYaW4QKBgQDMz2HWZ/Iqny9o9cad
jjiNsdvtxrdGxbI9F4CEfRw1TQ2+OtH8GxnbExeGayZMDWZ6yEAYd/DppcnI/IyW
YTtWw8js44D+AAMH2rrR+cst3kSrORVdYryWoCWDMw03MUpDwzWuLmZAqBGnLw4C
m2Kt/wvsjQiG97ITT0i8zRl0Yg==
-----END PRIVATE KEY-----' > onlyoffice.key && cd ..
docker-compose up -d

进入容器后的操作

docker exec -it OnlyOffice bash
获取到对应的秘钥字符串
cat /etc/onlyoffice/documentserver/local.json
## 将获取到的下面的secretString中的字符串记录好,后面的操作会用到
"storage": {"fs": {"secretString": "xxxxx"}}
赋值上面的数据(xxxxx替换为对应的字符)
sed -i 's#set $secure_link_secret ;#set $secure_link_secret xxxxx;#g' /etc/nginx/conf.d/ds.conf && nginx

nginx代理

此时直接通过http://ip:8088或通过https://ip:64431都可以成功访问,下面是通过nginx做https代理的方法,http的代理同样的操作

    location /web-apps/apps/api {proxy_pass https://localhost:64431;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_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "Upgrade";}location /8.3.0 {proxy_pass https://localhost:64431;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_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "Upgrade";}location /cache/files/data/2 {proxy_pass https://localhost:64431;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_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "Upgrade";}

我的服务器ip是192.168.14.184,可以创建html测试是否能成功预览,其中http://192.168.14.205:20020/software/cd46a0fab3614d7d8519ec58b5672529.docx需要更改成自己可下载的文件地址

<!DOCTYPE html>
<html style="height: 100%;">
<head><title>ONLYOFFICE Api Documentation</title>
</head>
<body style="height: 100%; margin: 0;"><div id="placeholder" style="height: 100%"></div><script type="text/javascript" src="https://192.168.14.184/web-apps/apps/api/documents/api.js"></script><script type="text/javascript">let editorConfig = {"secret":"kg3Zrcx8Rg4DEuQH83jrUpPMy7svxOGJ","lang": "zh-CN",//设置ONLYOFFICE编辑器语言为中文//保存文档时最终的回调接口,用于保存在线编辑的文件到存储//"callbackUrl": "http://192.168.2.62:24005/prod-api/file/upload","lang": "zh-CN",//设置ONLYOFFICE编辑器语言为中文"mode": "edit",//设置只读时使用的配置,不加则默认表示允许编辑(只读时不需要填不加callbackUrl配置)"customization": {"anonymous": { // set name for anonymous user"request": false, // enable set name"label": "aaa" // postfix for user name},},user: {id: '1232',name: '夏XX',group: 'group name' // for customization.reviewPermissions or permissions.reviewGroups or permissions.commentGroups. Can be multiple groups separated by commas (,) : 'Group1' or 'Group1,Group2'},}/*ONLYOFFICE编辑器有三种主要外观,针对不同用途进行了优化,可通过type属性予以配置:desktop,针对桌面计算机浏览器中的显示进行了优化;mobile,针对移动设备浏览器中的显示进行了优化;embedded,针对将文档嵌入网页进行了优化。*/window.docEditor = new DocsAPI.DocEditor("placeholder",{"document": {type: "embedded",//编辑器外观,"fileType": "docx","key": "2","title": "3TR069.xlsx","url": "http://192.168.14.205:20020/software/cd46a0fab3614d7d8519ec58b5672529.docx"},"documentType": "word","editorConfig": {"mode": "view"},"height": "100%","width": "100%",editorConfig: editorConfig});</script>
</body>
</html>

预览截图
在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/web/70786.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

【运维】内网服务器借助通过某台可上外网的服务器实现公网访问

背景&#xff1a; 内网服务器无法连接公网,但是办公电脑可以连接内网服务器又可以连接公网。 安装软件 1、frp 2、ccproxy 配置 1、内网服务器 # 内网服务器启动frp服务配置文件参考vi frps.ini# frps.ini [common] bind_port 7000# 备注: bind_port端口可以随意配置。配置完…

【图像的读写与基本操作】

图像的读写与基本操作 目录 图像的读写与基本操作目标知识点1. 图像的读写 &#xff1a;2. 图像的缩放 &#xff1a;3. 图像的翻转 &#xff1a;4. 图像的裁剪 &#xff1a;5. 颜色空间转换 &#xff1a; 示例代码1. 图像的读写 &#xff1a;2. 图像的缩放 &#xff1a;3. 图像…

《数字图像处理》笔记

文章目录 第一章 绪论1.1 什么是数字图像处理数字图像的概念数字图像的组成数字图像处理的概念 1.4 数字图像处理的基本步骤 第二章 数字图像基础2.2 光和电磁波谱可见光单色光灰度级发光强度光通量亮度 2.3 图像感知和获取将照射能量变换为数字图像的传感器简单的图像形成模型…

网络安全扫描--基础篇

前言 1、了解互联网安全领域中日趋重要的扫描技术 2、了解在不同网络场景下扫描技术手段 3、熟悉linux下系统内核防护策略并能大件一个有效的系统防护体系 4、增强工作安全意识&#xff0c;并能有效的实践于工作场景中 目录 1、熟悉主机扫描工具&#xff08;fping&#xff0c;…

基于Spring Boot的供应商管理系统设计与实现(LW+源码+讲解)

专注于大学生项目实战开发,讲解,毕业答疑辅导&#xff0c;欢迎高校老师/同行前辈交流合作✌。 技术范围&#xff1a;SpringBoot、Vue、SSM、HLMT、小程序、Jsp、PHP、Nodejs、Python、爬虫、数据可视化、安卓app、大数据、物联网、机器学习等设计与开发。 主要内容&#xff1a;…

Redis|事务

文章目录 是什么能干嘛Redis 事务 VS 数据库事务怎么玩小总结 是什么 首先回想一下什么是数据库的事务&#xff1f;数据库事务是指作为单个逻辑单元执行的一系列操作&#xff0c;具备以下四个关键特性&#xff08;ACID&#xff09;&#xff1a; 原子性&#xff08;Atomicity&am…

一周学会Flask3 Python Web开发-Jinja2模板继承和include标签使用

锋哥原创的Flask3 Python Web开发 Flask3视频教程&#xff1a; 2025版 Flask3 Python web开发 视频教程(无废话版) 玩命更新中~_哔哩哔哩_bilibili 不管是开发网站还是后台管理系统&#xff0c;我们页面里多多少少有公共的模块。比如博客网站&#xff0c;就有公共的头部&…

用pyside6创建一个界面并实现一个小功能且能打包成问题记录

现在我们要开发一个程序&#xff0c;让用户输入一段文本包含&#xff1a;员工姓名、薪资、年龄。该程序可以把薪资在 2万 以上、以下的人员名单分别打印出来。 1用designer创建界面并生成UI文件&#xff1b; 2直接调用ui文件实现功能&#xff1b; from PySide6.QtWidgets im…

包子凑数——蓝桥杯真题Python

包子凑数 输入输出样例 示例 1 输入 2 4 5输出 6样例说明 凑不出的数目包括&#xff1a;1, 2, 3, 6, 7, 11。 示例 2 输入 2 4 6输出 INF样例说明 所有奇数都凑不出来&#xff0c;所以有无限多个 运行限制 最大运行时间&#xff1a;1s最大运行内存: 256M 最大公约数 最大公…

文档检索服务平台

文档检索服务平台是基于Elasticsearch的全文检索&#xff0c;包含数据采集、数据清洗、数据转换、数据检索等模块。 项目地址&#xff1a;Github、国内Gitee 演示地址&#xff1a;http://silianpan.cn/gdss/ 以下是演示角色和账号&#xff08;密码同账号&#xff09;&#xf…

关于Postman自动获取token

在使用postman测试联调接口时&#xff0c;可能每个接口都需要使用此接口生成的令牌做Authorization的Bearer Token验证&#xff0c;最直接的办法可能会是一步一步的点击&#xff0c;如下图&#xff1a; 在Authorization中去选择Bearer Token&#xff0c;然后将获取到的token粘贴…

清华大学DeepSeek文档下载,清华大学deepseek下载(完成版下载)

文章目录 前言一、清华大学DeepSeek使用手册下载二、清华大学DeepSeek使用手册思维导图 前言 这是一篇关于清华大学deepseek使用手册pdf的介绍性文章&#xff0c;主要介绍了DeepSeek的定义、功能、使用方法以及如何通过提示语设计优化AI性能。以下是对这些核心内容的简要概述&…

Linux:(3)

一&#xff1a;Linux和Linux互传&#xff08;压缩包&#xff09; scp:Linux scp 命令用于 Linux 之间复制文件和目录。 scp 是 secure copy 的缩写, scp 是 linux 系统下基于 ssh 登陆进行安全的远程文件拷贝命令。 scp 是加密的&#xff0c;rcp 是不加密的&#xff0c;scp 是…

Arcgis 实用制图技巧--如何制作“阴影”效果

今天给大家介绍arcgis中阴影效果的制作方法,操作很简单,在ArcMap当中使用制图表达和移动几何方式就可以轻松实现。 左侧地图的图形背景组织很差。右侧地图通过使用阴影效果突出了重点内容。今天,我将要介绍两种阴影效果的创建方法:第一,纯色阴影(single color);第二,渐变…

pandas如何在dataframe上再添加一个dataframe

在pandas中&#xff0c;通常将一个DataFrame与另一个DataFrame进行合并或连接操作&#xff0c;主要有concat函数、merge函数和join方法三种方式&#xff0c;以下是具体介绍&#xff1a; ### 使用concat函数 concat函数可以沿着指定轴将多个DataFrame连接在一起&#xff0c;默认…

YOLOv12 ——基于卷积神经网络的快速推理速度与注意力机制带来的增强性能结合

概述 实时目标检测对于许多实际应用来说已经变得至关重要&#xff0c;而Ultralytics公司开发的YOLO&#xff08;You Only Look Once&#xff0c;只看一次&#xff09;系列一直是最先进的模型系列&#xff0c;在速度和准确性之间提供了稳健的平衡。注意力机制的低效阻碍了它们在…

OpenAI开放Deep Research权限,AI智能体大战升级,DeepSeek与Claude迎来新对决

每周跟踪AI热点新闻动向和震撼发展 想要探索生成式人工智能的前沿进展吗&#xff1f;订阅我们的简报&#xff0c;深入解析最新的技术突破、实际应用案例和未来的趋势。与全球数同行一同&#xff0c;从行业内部的深度分析和实用指南中受益。不要错过这个机会&#xff0c;成为AI领…

鸿蒙5.0实战案例:基于RichEditor的评论编辑

往期推文全新看点&#xff08;文中附带全新鸿蒙5.0全栈学习笔录&#xff09; ✏️ 鸿蒙&#xff08;HarmonyOS&#xff09;北向开发知识点记录~ ✏️ 鸿蒙&#xff08;OpenHarmony&#xff09;南向开发保姆级知识点汇总~ ✏️ 鸿蒙应用开发与鸿蒙系统开发哪个更有前景&#…

RIP-AV:使用上下文感知网络进行视网膜动脉/静脉分割的联合代表性实例预训练

文章目录 RIP-AV: Joint Representative Instance Pre-training with Context Aware Network for Retinal Artery/Vein Segmentation摘要方法实验结果 RIP-AV: Joint Representative Instance Pre-training with Context Aware Network for Retinal Artery/Vein Segmentation …

单片机总结【GPIO/TIM/IIC/SPI/UART】

一、GPIO 1、概念 通用输入输出口&#xff1b;开发者可以根据自己的需求将其配置为输入或输出模式&#xff0c;以实现与外部设备进行数据交互、控制外部设备等功能。简单来说&#xff0c;GPIO 就像是计算机或微控制器与外部世界沟通的 “桥梁”。 2、工作模式 工作模式性质特…