{"id":78854,"date":"2026-02-28T13:32:55","date_gmt":"2026-02-28T05:32:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78854.html"},"modified":"2026-02-28T13:32:55","modified_gmt":"2026-02-28T05:32:55","slug":"lightonocr-2-1b%e4%bf%9d%e5%a7%86%e7%ba%a7%e6%95%99%e7%a8%8b%ef%bc%9a%e4%bb%8e%e6%9c%8d%e5%8a%a1%e5%99%a8ip%e9%85%8d%e7%bd%ae%e5%88%b0https%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e5%85%a8%e6%ad%a5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78854.html","title":{"rendered":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4"},"content":{"rendered":"<h2>LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4<\/h2>\n<h3>1. \u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u7bc7\u6559\u7a0b<\/h3>\n<p>\u4f60\u53ef\u80fd\u5df2\u7ecf\u4e0b\u8f7d\u597d\u4e86LightOnOCR-2-1B\u6a21\u578b&#xff0c;\u4e5f\u6210\u529f\u8fd0\u884c\u4e86\u670d\u52a1&#xff0c;\u4f46\u5f53\u4f60\u60f3\u5728\u516c\u53f8\u5185\u7f51\u5206\u4eab\u7ed9\u540c\u4e8b\u3001\u6216\u8005\u7528\u624b\u673a\u626b\u63cf\u4e8c\u7ef4\u7801\u8bbf\u95ee\u65f6&#xff0c;\u5374\u53d1\u73b0\u53ea\u80fd\u5728\u670d\u52a1\u5668\u672c\u5730\u6253\u5f00http:\/\/localhost:7860\u2014\u2014\u8fd9\u8bf4\u660e\u670d\u52a1\u8fd8\u6ca1\u771f\u6b63\u201c\u8d70\u51fa\u53bb\u201d\u3002<\/p>\n<p>\u66f4\u5e38\u89c1\u7684\u60c5\u51b5\u662f&#xff1a;\u4f60\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u597d\u4e86&#xff0c;\u4f46\u540c\u4e8b\u8bbf\u95ee\u65f6\u63d0\u793a\u201c\u8fde\u63a5\u88ab\u62d2\u7edd\u201d&#xff0c;\u6216\u8005\u7528\u57df\u540d\u8bbf\u95ee\u65f6\u663e\u793a\u4e0d\u5b89\u5168\u8b66\u544a\u3002\u8fd9\u4e9b\u95ee\u9898\u80cc\u540e&#xff0c;\u5176\u5b9e\u90fd\u6307\u5411\u540c\u4e00\u4e2a\u6838\u5fc3&#xff1a;\u670d\u52a1\u66b4\u9732\u65b9\u5f0f\u6ca1\u914d\u5bf9\u3002<\/p>\n<p>\u8fd9\u7bc7\u6559\u7a0b\u4e0d\u8bb2\u6a21\u578b\u539f\u7406&#xff0c;\u4e0d\u5806\u53c2\u6570\u914d\u7f6e&#xff0c;\u53ea\u805a\u7126\u4e00\u4ef6\u4e8b&#xff1a;\u8ba9\u4f60\u7684LightOnOCR-2-1B\u670d\u52a1&#xff0c;\u7a33\u7a33\u5f53\u5f53\u5730\u8dd1\u5728\u771f\u5b9e\u7f51\u7edc\u73af\u5883\u4e2d&#xff0c;\u80fd\u88ab\u4efb\u4f55\u4eba\u3001\u4efb\u4f55\u8bbe\u5907\u3001\u4efb\u4f55\u65f6\u95f4\u65b9\u4fbf\u5730\u7528\u8d77\u6765\u3002<\/p>\n<p>\u6211\u4eec\u4f1a\u4ece\u6700\u57fa\u7840\u7684\u670d\u52a1\u5668IP\u786e\u8ba4\u5f00\u59cb&#xff0c;\u4e00\u6b65\u6b65\u5e26\u4f60\u5b8c\u6210\u7aef\u53e3\u5f00\u653e\u3001\u57df\u540d\u7ed1\u5b9a\u3001Nginx\u53cd\u5411\u4ee3\u7406&#xff0c;\u6700\u540e\u52a0\u4e0aHTTPS\u52a0\u5bc6\u3002\u6bcf\u4e00\u6b65\u90fd\u6709\u660e\u786e\u547d\u4ee4\u3001\u5e38\u89c1\u62a5\u9519\u548c\u5bf9\u5e94\u89e3\u6cd5&#xff0c;\u4e0d\u9700\u8981\u4f60\u67e5\u6587\u6863\u3001\u8bd5\u4e09\u6b21\u3001\u91cd\u542f\u4e94\u6b21\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6b63\u5361\u5728\u201c\u80fd\u8dd1\u4f46\u4e0d\u80fd\u7528\u201d\u7684\u9636\u6bb5&#xff0c;\u8fd9\u7bc7\u5c31\u662f\u4e3a\u4f60\u5199\u7684\u3002<\/p>\n<h3>2. \u786e\u8ba4\u670d\u52a1\u5668\u57fa\u7840\u73af\u5883\u4e0eIP\u5730\u5740<\/h3>\n<h4>2.1 \u67e5\u770b\u670d\u52a1\u5668\u771f\u5b9eIP&#xff08;\u522b\u518d\u53ea\u4fe1ifconfig&#xff09;<\/h4>\n<p>\u5f88\u591a\u65b0\u624b\u7b2c\u4e00\u6b65\u5c31\u9519\u4e86&#xff1a;\u76f4\u63a5\u5728\u670d\u52a1\u5668\u91cc\u6267\u884cifconfig\u6216ip a&#xff0c;\u770b\u5230127.0.0.1\u6216192.168.x.x\u5c31\u4ee5\u4e3a\u8fd9\u662f\u53ef\u8bbf\u95ee\u7684\u5730\u5740\u3002\u5176\u5b9e\u8fd9\u4e9b\u662f\u5185\u7f51\u5730\u5740&#xff0c;\u5916\u90e8\u6839\u672c\u8fde\u4e0d\u4e0a\u3002<\/p>\n<p>\u4f60\u9700\u8981\u7684\u662f\u670d\u52a1\u5668\u5bf9\u5916\u66b4\u9732\u7684\u516c\u7f51IP\u3002\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<p>curl -s https:\/\/api.ipify.org<\/p>\n<p>\u5982\u679c\u8fd4\u56de\u4e00\u4e2a\u7c7b\u4f3c203.205.128.45\u7684IPv4\u5730\u5740&#xff0c;\u606d\u559c&#xff0c;\u8fd9\u5c31\u662f\u4f60\u7684\u516c\u7f51IP\u3002\u628a\u5b83\u8bb0\u4e0b\u6765&#xff0c;\u540e\u9762\u6240\u6709&lt;\u670d\u52a1\u5668IP&gt;\u90fd\u8981\u66ff\u6362\u6210\u8fd9\u4e2a\u503c\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5982\u679c\u4f60\u7528\u7684\u662f\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u7b49\u5382\u5546\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u8fd8\u9700\u8981\u989d\u5916\u68c0\u67e5\u5b89\u5168\u7ec4\u89c4\u5219\u3002\u786e\u4fdd\u5165\u65b9\u5411&#xff08;Inbound&#xff09;\u5df2\u653e\u884c\u7aef\u53e3 7860 \u548c 8000&#xff0c;\u534f\u8bae\u4e3a TCP\u3002\u6ca1\u5f00\u7684\u8bdd&#xff0c;\u54ea\u6015IP\u6b63\u786e&#xff0c;\u5916\u90e8\u8bf7\u6c42\u4e5f\u4f1a\u88ab\u76f4\u63a5\u62e6\u622a\u3002<\/p>\n<h4>2.2 \u9a8c\u8bc1\u670d\u52a1\u662f\u5426\u771f\u6b63\u5728\u76d1\u542c<\/h4>\n<p>LightOnOCR-2-1B\u9ed8\u8ba4\u542f\u52a8\u4e24\u4e2a\u670d\u52a1&#xff1a;Gradio\u524d\u7aef&#xff08;7860\u7aef\u53e3&#xff09;\u548cvLLM\u540e\u7aef&#xff08;8000\u7aef\u53e3&#xff09;\u3002\u4f46\u6709\u65f6\u5019\u670d\u52a1\u770b\u4f3c\u542f\u52a8\u4e86&#xff0c;\u5b9e\u9645\u5374\u6ca1\u7ed1\u5b9a\u5230\u516c\u7f51IP\u3002<\/p>\n<p>\u6267\u884c\u8fd9\u6761\u547d\u4ee4&#xff0c;\u67e5\u770b\u7aef\u53e3\u76d1\u542c\u72b6\u6001&#xff1a;<\/p>\n<p>ss -tlnp | grep -E &#034;7860|8000&#034;<\/p>\n<p>\u6b63\u5e38\u8f93\u51fa\u5e94\u8be5\u7c7b\u4f3c\u8fd9\u6837&#xff1a;<\/p>\n<p>LISTEN 0 128 *:7860 *:* users:((&#034;python&#034;,pid&#061;12345,fd&#061;5))<br \/>\nLISTEN 0 128 *:8000 *:* users:((&#034;python&#034;,pid&#061;12346,fd&#061;7))<\/p>\n<p>\u5173\u952e\u770b *:7860 \u548c *:8000 \u2014\u2014 \u661f\u53f7*\u4ee3\u8868\u76d1\u542c\u6240\u6709\u7f51\u7edc\u63a5\u53e3&#xff08;\u5305\u62ec\u516c\u7f51&#xff09;\u3002\u5982\u679c\u770b\u5230\u7684\u662f 127.0.0.1:7860&#xff0c;\u8bf4\u660e\u670d\u52a1\u53ea\u7ed1\u5b9a\u4e86\u672c\u5730\u56de\u73af&#xff0c;\u5916\u90e8\u65e0\u6cd5\u8bbf\u95ee\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5&#xff1a;\u4fee\u6539\u542f\u52a8\u811a\u672c&#xff0c;\u5f3a\u5236\u6307\u5b9a&#8211;host 0.0.0.0\u3002<\/p>\n<p>\u6253\u5f00 \/root\/LightOnOCR-2-1B\/start.sh&#xff0c;\u627e\u5230\u542f\u52a8Gradio\u7684\u90a3\u884c&#xff08;\u901a\u5e38\u662fpython app.py&#xff09;&#xff0c;\u6539\u6210&#xff1a;<\/p>\n<p>python app.py &#8211;host 0.0.0.0 &#8211;port 7860<\/p>\n<p>vLLM\u670d\u52a1\u540c\u7406&#xff0c;\u5728\u542f\u52a8\u547d\u4ee4\u4e2d\u52a0\u5165 &#8211;host 0.0.0.0 \u53c2\u6570\u3002<\/p>\n<p>\u6539\u5b8c\u4fdd\u5b58&#xff0c;\u91cd\u542f\u670d\u52a1&#xff1a;<\/p>\n<p>pkill -f &#034;vllm serve&#034; &amp;&amp; pkill -f &#034;python app.py&#034;<br \/>\ncd \/root\/LightOnOCR-2-1B &amp;&amp; bash start.sh<\/p>\n<p>\u518d\u6b21\u6267\u884css -tlnp | grep &#8230;&#xff0c;\u786e\u8ba4\u663e\u793a*:7860\u3002<\/p>\n<h3>3. \u7528\u57df\u540d\u66ff\u4ee3IP&#xff1a;\u8ba9\u8bbf\u95ee\u66f4\u4e13\u4e1a\u66f4\u7a33\u5b9a<\/h3>\n<h4>3.1 \u4e3a\u4ec0\u4e48\u4e0d\u7528IP\u76f4\u63a5\u8bbf\u95ee&#xff1f;<\/h4>\n<ul>\n<li>IP\u5730\u5740\u96be\u8bb0\u3001\u6613\u8f93\u9519&#xff08;\u6bd4\u5982\u628a203.205.128.45\u5199\u6210203.205.128.46&#xff09;<\/li>\n<li>\u4e91\u670d\u52a1\u5668IP\u53ef\u80fd\u53d8\u66f4&#xff08;\u5c24\u5176\u662f\u6309\u91cf\u4ed8\u8d39\u5b9e\u4f8b&#xff09;<\/li>\n<li>\u6d4f\u89c8\u5668\u5bf9HTTP&#043;IP\u5730\u5740\u9ed8\u8ba4\u6807\u8bb0\u4e3a\u201c\u4e0d\u5b89\u5168\u201d&#xff0c;\u5f71\u54cd\u4fe1\u4efb\u611f<\/li>\n<li>\u540e\u7eed\u52a0HTTPS\u3001\u505a\u8d1f\u8f7d\u5747\u8861\u3001\u8bbe\u7f6e\u7f13\u5b58\u90fd\u4f9d\u8d56\u57df\u540d<\/li>\n<\/ul>\n<p>\u6240\u4ee5&#xff0c;\u5f3a\u70c8\u5efa\u8bae\u4e3a\u4f60\u7684OCR\u670d\u52a1\u5355\u72ec\u914d\u4e00\u4e2a\u5b50\u57df\u540d&#xff0c;\u6bd4\u5982 ocr.yourcompany.com \u6216 lighton.yourdomain.cn\u3002<\/p>\n<h4>3.2 \u57df\u540d\u89e3\u6790\u4e09\u6b65\u8d70<\/h4>\n<p>\u5047\u8bbe\u4f60\u5df2\u6709\u4e00\u4e2a\u4e3b\u57df\u540d yourdomain.com&#xff08;\u5728\u963f\u91cc\u4e91\/\u817e\u8baf\u4e91\/Cloudflare\u7b49\u5e73\u53f0\u8d2d\u4e70\u5e76\u5b9e\u540d\u8ba4\u8bc1\u8fc7&#xff09;&#xff0c;\u6dfb\u52a0\u5b50\u57df\u540d\u53ea\u9700\u4e09\u6b65&#xff1a;<\/p>\n<li>\u767b\u5f55\u57df\u540d\u7ba1\u7406\u540e\u53f0 \u2192 \u627e\u5230DNS\u89e3\u6790\u8bbe\u7f6e<\/li>\n<li>\u65b0\u589e\u4e00\u6761A\u8bb0\u5f55&#xff1a;\n<ul>\n<li>\u4e3b\u673a\u540d&#xff1a;\u586b ocr&#xff08;\u8868\u793a ocr.yourdomain.com&#xff09;<\/li>\n<li>\u8bb0\u5f55\u503c&#xff1a;\u586b\u4f60\u4e0a\u4e00\u6b65\u67e5\u5230\u7684\u516c\u7f51IP&#xff08;\u5982 203.205.128.45&#xff09;<\/li>\n<li>TTL&#xff1a;\u4fdd\u6301\u9ed8\u8ba4&#xff08;\u901a\u5e38300\u79d2\u621610\u5206\u949f&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u4fdd\u5b58\u5e76\u7b49\u5f85\u751f\u6548&#xff1a;DNS\u5168\u7403\u540c\u6b65\u4e00\u822c\u9700 1\u201330 \u5206\u949f&#xff0c;\u53ef\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b9e\u65f6\u68c0\u6d4b&#xff1a;<\/li>\n<p>dig &#043;short ocr.yourdomain.com<\/p>\n<p>\u5982\u679c\u8fd4\u56de\u4f60\u7684IP&#xff0c;\u8bf4\u660e\u89e3\u6790\u5df2\u751f\u6548\u3002<\/p>\n<p>\u5c0f\u6280\u5de7&#xff1a;\u672c\u5730\u6d4b\u8bd5\u65f6&#xff0c;\u53ef\u4e34\u65f6\u4fee\u6539\u7535\u8111\u7684hosts\u6587\u4ef6&#xff08;Windows\u5728C:\\\\Windows\\\\System32\\\\drivers\\\\etc\\\\hosts&#xff0c;Mac\/Linux\u5728\/etc\/hosts&#xff09;&#xff0c;\u6dfb\u52a0\u4e00\u884c&#xff1a;<\/p>\n<p> 203.205.128.45 ocr.yourdomain.com<\/p>\n<p>\u8fd9\u6837\u65e0\u9700\u7b49DNS&#xff0c;\u7acb\u523b\u5c31\u80fd\u7528\u57df\u540d\u8bbf\u95ee\u3002<\/p>\n<h3>4. Nginx\u53cd\u5411\u4ee3\u7406&#xff1a;\u628a\u57df\u540d\u6d41\u91cf\u7cbe\u51c6\u5bfc\u7ed9OCR\u670d\u52a1<\/h3>\n<h4>4.1 \u5b89\u88c5\u4e0e\u57fa\u7840\u914d\u7f6e<\/h4>\n<p>Nginx\u662f\u8f7b\u91cf\u3001\u7a33\u5b9a\u3001\u5e7f\u6cdb\u4f7f\u7528\u7684\u53cd\u5411\u4ee3\u7406\u5de5\u5177\u3002\u5b83\u4e0d\u5904\u7406OCR\u903b\u8f91&#xff0c;\u53ea\u505a\u4e00\u4ef6\u4e8b&#xff1a;\u5f53\u7528\u6237\u8bbf\u95ee https:\/\/ocr.yourdomain.com \u65f6&#xff0c;\u628a\u8bf7\u6c42\u6084\u6084\u8f6c\u7ed9 http:\/\/127.0.0.1:7860&#xff0c;\u518d\u628a\u7ed3\u679c\u539f\u6837\u8fd4\u56de\u3002<\/p>\n<p>\u5728Ubuntu\/Debian\u7cfb\u7edf\u4e0a\u5b89\u88c5&#xff1a;<\/p>\n<p>sudo apt update &amp;&amp; sudo apt install -y nginx<br \/>\nsudo systemctl enable nginx<br \/>\nsudo systemctl start nginx<\/p>\n<p>\u9a8c\u8bc1Nginx\u662f\u5426\u8fd0\u884c&#xff1a;\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/&lt;\u4f60\u7684\u516c\u7f51IP&gt;&#xff0c;\u5e94\u770b\u5230\u201cWelcome to nginx!\u201d\u9875\u9762\u3002<\/p>\n<h4>4.2 \u521b\u5efa\u4e13\u5c5e\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>Nginx\u914d\u7f6e\u63a8\u8350\u201c\u4e00\u670d\u52a1\u4e00\u6587\u4ef6\u201d&#xff0c;\u6e05\u6670\u4e0d\u6df7\u4e71\u3002\u521b\u5efa\u65b0\u914d\u7f6e&#xff1a;<\/p>\n<p>sudo nano \/etc\/nginx\/sites-available\/lighton-ocr<\/p>\n<p>\u7c98\u8d34\u4ee5\u4e0b\u5185\u5bb9&#xff08;\u8bf7\u5c06 ocr.yourdomain.com \u66ff\u6362\u4e3a\u4f60\u7684\u771f\u5b9e\u57df\u540d&#xff09;&#xff1a;<\/p>\n<p>server {<br \/>\n    listen 80;<br \/>\n    server_name ocr.yourdomain.com;<\/p>\n<p>    # \u628a\u6240\u6709HTTP\u8bf7\u6c42\u91cd\u5b9a\u5411\u5230HTTPS&#xff08;\u540e\u7eed\u542f\u7528SSL\u540e\u751f\u6548&#xff09;<br \/>\n    return 301 https:\/\/$server_name$request_uri;<br \/>\n}<\/p>\n<p>server {<br \/>\n    listen 443 ssl http2;<br \/>\n    server_name ocr.yourdomain.com;<\/p>\n<p>    # SSL\u8bc1\u4e66\u8def\u5f84&#xff08;\u5360\u4f4d&#xff0c;\u540e\u7eedLet&#039;s Encrypt\u4f1a\u81ea\u52a8\u751f\u6210&#xff09;<br \/>\n    ssl_certificate \/etc\/letsencrypt\/live\/ocr.yourdomain.com\/fullchain.pem;<br \/>\n    ssl_certificate_key \/etc\/letsencrypt\/live\/ocr.yourdomain.com\/privkey.pem;<\/p>\n<p>    # Gradio\u524d\u7aef\u4ee3\u7406<br \/>\n    location \/ {<br \/>\n        proxy_pass http:\/\/127.0.0.1:7860;<br \/>\n        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        proxy_http_version 1.1;<br \/>\n        proxy_set_header Upgrade $http_upgrade;<br \/>\n        proxy_set_header Connection &#034;upgrade&#034;;<br \/>\n        proxy_read_timeout 300;<br \/>\n        proxy_send_timeout 300;<br \/>\n    }<\/p>\n<p>    # API\u63a5\u53e3\u4ee3\u7406&#xff08;vLLM\u540e\u7aef&#xff09;<br \/>\n    location \/v1\/ {<br \/>\n        proxy_pass http:\/\/127.0.0.1:8000\/v1\/;<br \/>\n        proxy_set_header Host $host;<br \/>\n        proxy_set_header X-Real-IP $remote_addr;<br \/>\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br \/>\n        proxy_set_header X-Forwarded-Proto $scheme;<br \/>\n        proxy_http_version 1.1;<br \/>\n        proxy_set_header Upgrade $http_upgrade;<br \/>\n        proxy_set_header Connection &#034;upgrade&#034;;<br \/>\n        proxy_read_timeout 300;<br \/>\n        proxy_send_timeout 300;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5173\u952e\u70b9\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>location \/ \u4ee3\u7406Gradio\u754c\u9762&#xff08;\u542bWebSocket\u652f\u6301&#xff0c;\u5fc5\u987b\u52a0Upgrade\u5934&#xff09;<\/li>\n<li>location \/v1\/ \u4ee3\u7406API\u63a5\u53e3&#xff0c;\u6ce8\u610f\u672b\u5c3e\u659c\u6760 \/v1\/ \u4e0e\u540e\u7aef\u8def\u5f84\u5bf9\u9f50<\/li>\n<li>proxy_read_timeout 300 \u662f\u5fc5\u987b\u7684&#xff01;OCR\u8bc6\u522b\u5927\u56fe\u53ef\u80fd\u8017\u65f6\u8f83\u957f&#xff0c;\u4e0d\u8bbe\u957f\u8d85\u65f6\u4f1a\u5bfc\u81f4504\u9519\u8bef<\/li>\n<\/ul>\n<p>\u542f\u7528\u914d\u7f6e&#xff1a;<\/p>\n<p>sudo ln -sf \/etc\/nginx\/sites-available\/lighton-ocr \/etc\/nginx\/sites-enabled\/<br \/>\nsudo nginx -t  # \u68c0\u67e5\u8bed\u6cd5\u662f\u5426\u6b63\u786e<br \/>\nsudo systemctl reload nginx<\/p>\n<p>\u6b64\u65f6\u8bbf\u95ee http:\/\/ocr.yourdomain.com \u5e94\u8be5\u80fd\u770b\u5230Gradio\u754c\u9762&#xff08;\u6682\u65f6\u8fd8\u662fHTTP&#xff0c;\u4e0b\u4e00\u6b65\u52a0HTTPS&#xff09;\u3002<\/p>\n<h3>5. \u514d\u8d39HTTPS&#xff1a;\u7528Certbot\u4e00\u952e\u83b7\u53d6\u5e76\u81ea\u52a8\u7eed\u671f<\/h3>\n<h4>5.1 \u5b89\u88c5Certbot\u5e76\u7533\u8bf7\u8bc1\u4e66<\/h4>\n<p>\u6211\u4eec\u4f7f\u7528Let&#039;s Encrypt\u63d0\u4f9b\u7684\u514d\u8d39SSL\u8bc1\u4e66&#xff0c;\u914d\u5408Certbot\u5de5\u5177\u5168\u81ea\u52a8\u90e8\u7f72\u3002<\/p>\n<p>sudo apt install -y certbot python3-certbot-nginx<br \/>\nsudo certbot &#8211;nginx -d ocr.yourdomain.com<\/p>\n<p>\u6267\u884c\u540e\u4f1a\u5f15\u5bfc\u4f60&#xff1a;<\/p>\n<ul>\n<li>\u8f93\u5165\u90ae\u7bb1&#xff08;\u7528\u4e8e\u8bc1\u4e66\u5230\u671f\u63d0\u9192&#xff09;<\/li>\n<li>\u540c\u610f\u670d\u52a1\u6761\u6b3e<\/li>\n<li>\u9009\u62e9\u662f\u5426\u91cd\u5b9a\u5411HTTP\u5230HTTPS&#xff08;\u9009 2: Redirect&#xff09;<\/li>\n<\/ul>\n<p>Certbot\u4f1a\u81ea\u52a8&#xff1a;<\/p>\n<ul>\n<li>\u9a8c\u8bc1\u57df\u540d\u6240\u6709\u6743&#xff08;\u901a\u8fc7\u4e34\u65f6\u5728Nginx\u91cc\u52a0\u4e00\u4e2a\u9a8c\u8bc1\u8def\u5f84&#xff09;<\/li>\n<li>\u4eceLet&#039;s Encrypt\u7b7e\u53d1\u8bc1\u4e66<\/li>\n<li>\u4fee\u6539Nginx\u914d\u7f6e&#xff0c;\u586b\u5165\u8bc1\u4e66\u8def\u5f84<\/li>\n<li>\u91cd\u542fNginx\u751f\u6548<\/li>\n<\/ul>\n<p>\u5b8c\u6210\u540e&#xff0c;\u6d4f\u89c8\u5668\u8bbf\u95ee https:\/\/ocr.yourdomain.com&#xff0c;\u5730\u5740\u680f\u4f1a\u51fa\u73b0\u7eff\u8272\u9501\u56fe\u6807 \u3002<\/p>\n<h4>5.2 \u8bbe\u7f6e\u81ea\u52a8\u7eed\u671f&#xff08;\u91cd\u8981&#xff01;&#xff09;<\/h4>\n<p>Let&#039;s Encrypt\u8bc1\u4e66\u6709\u6548\u671f\u53ea\u670990\u5929&#xff0c;\u4f46Certbot\u5df2\u5185\u7f6e\u81ea\u52a8\u7eed\u671f\u673a\u5236\u3002\u9a8c\u8bc1\u662f\u5426\u542f\u7528&#xff1a;<\/p>\n<p>sudo systemctl list-timers | grep certbot<\/p>\n<p>\u5e94\u770b\u5230\u7c7b\u4f3c certbot.timer \u7684\u6761\u76ee&#xff0c;\u8868\u793a\u6bcf\u5929\u51cc\u6668\u4f1a\u81ea\u52a8\u68c0\u67e5\u7eed\u671f\u3002<\/p>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u624b\u52a8\u6d4b\u8bd5\u7eed\u671f\u6d41\u7a0b&#xff08;\u4e0d\u5b9e\u9645\u66f4\u65b0&#xff0c;\u53ea\u6a21\u62df&#xff09;&#xff1a;<\/p>\n<p>sudo certbot renew &#8211;dry-run<\/p>\n<p>\u5982\u679c\u8fd4\u56de Congratulations, all simulated renewals succeeded&#xff0c;\u8bf4\u660e\u4e00\u5207\u5c31\u7eea\u3002<\/p>\n<h3>6. \u5b9e\u6218\u9a8c\u8bc1&#xff1a;\u4ece\u4e0a\u4f20\u5230\u63d0\u53d6&#xff0c;\u5168\u6d41\u7a0b\u8d70\u901a<\/h3>\n<p>\u73b0\u5728&#xff0c;\u4f60\u7684LightOnOCR-2-1B\u5df2\u5177\u5907\u751f\u4ea7\u7ea7\u8bbf\u95ee\u80fd\u529b\u3002\u6211\u4eec\u7528\u4e00\u4e2a\u771f\u5b9e\u573a\u666f\u9a8c\u8bc1&#xff1a;<\/p>\n<h4>6.1 Web\u754c\u9762\u7aef\u5230\u7aef\u6d4b\u8bd5<\/h4>\n<li>\u6253\u5f00\u6d4f\u89c8\u5668&#xff0c;\u8bbf\u95ee https:\/\/ocr.yourdomain.com<\/li>\n<li>\u4e0a\u4f20\u4e00\u5f20\u542b\u4e2d\u6587\u8868\u683c\u7684\u622a\u56fe&#xff08;\u63a8\u8350\u7528\u624b\u673a\u62cd\u4e00\u5f20\u6536\u636e\u6216\u8bfe\u7a0b\u8868&#xff09;<\/li>\n<li>\u70b9\u51fb Extract Text \u6309\u94ae<\/li>\n<li>\u89c2\u5bdf\u53f3\u4e0b\u89d2\u72b6\u6001\u680f&#xff1a;\u82e5\u663e\u793a Processing&#8230; \u2192 Done&#xff0c;\u4e14\u6587\u5b57\u533a\u57df\u51fa\u73b0\u8bc6\u522b\u7ed3\u679c&#xff0c;\u8bf4\u660eGradio\u524d\u7aef&#043;\u53cd\u5411\u4ee3\u7406&#043;HTTPS\u5168\u90e8\u6253\u901a<\/li>\n<p>\u63d0\u793a&#xff1a;\u9996\u6b21\u52a0\u8f7d\u53ef\u80fd\u7a0d\u6162&#xff08;Gradio\u9700\u521d\u59cb\u5316&#xff09;&#xff0c;\u540e\u7eed\u64cd\u4f5c\u4f1a\u660e\u663e\u52a0\u5feb\u3002\u5982\u9047\u7a7a\u767d\u9875&#xff0c;\u8bf7\u6309F12\u6253\u5f00\u5f00\u53d1\u8005\u5de5\u5177&#xff0c;\u770bConsole\u662f\u5426\u6709WebSocket connection failed\u62a5\u9519\u2014\u2014\u5927\u6982\u7387\u662fNginx\u7f3a\u5c11Upgrade\u5934&#xff0c;\u56de\u5934\u68c0\u67e5\u7b2c4.2\u8282\u914d\u7f6e\u3002<\/p>\n<h4>6.2 API\u8c03\u7528\u7aef\u5230\u7aef\u6d4b\u8bd5<\/h4>\n<p>\u7528curl\u76f4\u63a5\u8c03\u7528\u540e\u7aefAPI&#xff0c;\u9a8c\u8bc1\u670d\u52a1\u94fe\u8def\u5b8c\u6574\u6027&#xff1a;<\/p>\n<p># \u5c06\u56fe\u7247\u8f6cbase64&#xff08;Linux\/macOS&#xff09;<br \/>\nIMAGE_BASE64&#061;$(base64 -i .\/receipt.jpg | tr -d &#039;\\\\n&#039;)<\/p>\n<p># \u8c03\u7528API&#xff08;\u6ce8\u610f&#xff1a;URL\u5df2\u4eceIP\u53d8\u4e3a\u57df\u540d&#xff0c;\u4e14\u534f\u8bae\u4e3ahttps&#xff09;<br \/>\ncurl -X POST https:\/\/ocr.yourdomain.com\/v1\/chat\/completions \\\\<br \/>\n  -H &#034;Content-Type: application\/json&#034; \\\\<br \/>\n  -d &#039;{<br \/>\n    &#034;model&#034;: &#034;\/root\/ai-models\/lightonai\/LightOnOCR-2-1B&#034;,<br \/>\n    &#034;messages&#034;: [{<br \/>\n      &#034;role&#034;: &#034;user&#034;,<br \/>\n      &#034;content&#034;: [{&#034;type&#034;: &#034;image_url&#034;, &#034;image_url&#034;: {&#034;url&#034;: &#034;data:image\/jpeg;base64,&#039;&#034;$IMAGE_BASE64&#034;&#039;&#034;}}]<br \/>\n    }],<br \/>\n    &#034;max_tokens&#034;: 4096<br \/>\n  }&#039;<\/p>\n<p>\u5982\u679c\u8fd4\u56deJSON\u683c\u5f0f\u7684\u8bc6\u522b\u6587\u672c&#xff08;\u542bchoices[0].message.content\u5b57\u6bb5&#xff09;&#xff0c;\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>\u57df\u540d\u2192Nginx\u2192vLLM\u540e\u7aef\u2192\u6a21\u578b\u63a8\u7406 \u5168\u94fe\u8def\u7545\u901a<\/li>\n<li>HTTPS\u52a0\u5bc6\u672a\u5e72\u6270API\u901a\u4fe1<\/li>\n<li>base64\u4f20\u8f93\u3001\u957f\u6587\u672c\u8fd4\u56de\u5747\u6b63\u5e38<\/li>\n<\/ul>\n<h3>7. \u5e38\u89c1\u95ee\u9898\u4e0e\u901f\u67e5\u89e3\u51b3\u65b9\u6848<\/h3>\n<h4>7.1 \u201cConnection refused\u201d \u9519\u8bef<\/h4>\n<ul>\n<li>\u73b0\u8c61&#xff1a;\u8bbf\u95ee\u57df\u540d\u65f6\u6d4f\u89c8\u5668\u663e\u793a\u201c\u65e0\u6cd5\u8fde\u63a5\u201d\u6216curl\u62a5 Failed to connect<\/li>\n<li>\u6392\u67e5\u987a\u5e8f&#xff1a;\n<li>ping ocr.yourdomain.com \u2192 \u770b\u662f\u5426\u80fd\u89e3\u6790\u51faIP<\/li>\n<li>telnet ocr.yourdomain.com 443 \u2192 \u770b\u7aef\u53e3\u662f\u5426\u901a&#xff08;\u4e0d\u901a\u5219\u68c0\u67e5\u4e91\u670d\u52a1\u5668\u5b89\u5168\u7ec4\u3001\u9632\u706b\u5899ufw status&#xff09;<\/li>\n<li>curl -I http:\/\/127.0.0.1:7860 \u2192 \u770b\u672c\u5730\u670d\u52a1\u662f\u5426\u771f\u5728\u8dd1<\/li>\n<li>sudo journalctl -u nginx -n 50 &#8211;no-pager \u2192 \u67e5Nginx\u9519\u8bef\u65e5\u5fd7<\/li>\n<\/li>\n<\/ul>\n<h4>7.2 \u201c502 Bad Gateway\u201d<\/h4>\n<ul>\n<li>\u73b0\u8c61&#xff1a;Nginx\u9875\u9762\u663e\u793a502&#xff0c;\u4f46\u672c\u5730curl http:\/\/127.0.0.1:7860\u80fd\u901a<\/li>\n<li>\u539f\u56e0&#xff1a;Nginx\u627e\u4e0d\u5230\u540e\u7aef\u670d\u52a1&#xff0c;\u5e38\u89c1\u4e8e&#xff1a;\n<ul>\n<li>OCR\u670d\u52a1\u672a\u542f\u52a8&#xff08;ps aux | grep app.py\u786e\u8ba4\u8fdb\u7a0b&#xff09;<\/li>\n<li>\u542f\u52a8\u65f6\u672a\u52a0&#8211;host 0.0.0.0&#xff0c;\u53ea\u76d1\u542c\u4e86127.0.0.1<\/li>\n<li>\u7aef\u53e3\u53f7\u5199\u9519&#xff08;\u914d\u7f6e\u91cc\u51997860&#xff0c;\u4f46\u670d\u52a1\u5b9e\u9645\u542f\u57287861&#xff09;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>7.3 \u6587\u5b57\u8bc6\u522b\u7ed3\u679c\u4e3a\u7a7a\u6216\u4e71\u7801<\/h4>\n<ul>\n<li>\u4f18\u5148\u68c0\u67e5\u56fe\u7247\u8d28\u91cf&#xff1a;LightOnOCR-2-1B\u5bf9\u8f93\u5165\u6709\u8981\u6c42\u2014\u2014\u6700\u957f\u8fb9\u5efa\u8bae1540px&#xff0c;\u5206\u8fa8\u7387\u592a\u4f4e&#xff08;\u5982\u624b\u673a\u622a\u56fe\u672a\u653e\u5927&#xff09;\u6216\u592a\u9ad8&#xff08;\u8d854K&#xff09;\u90fd\u5f71\u54cd\u6548\u679c<\/li>\n<li>\u786e\u8ba4\u6a21\u578b\u8def\u5f84\u6b63\u786e&#xff1a;API\u8c03\u7528\u4e2d&#034;model&#034;\u5b57\u6bb5\u5fc5\u987b\u6307\u5411\u771f\u5b9e\u5b58\u5728\u7684\u76ee\u5f55&#xff0c;\u4e14\u6743\u9650\u4e3aroot\u53ef\u8bfb<\/li>\n<li>GPU\u663e\u5b58\u662f\u5426\u8db3\u591f&#xff1a;16GB\u662f\u6700\u4f4e\u8981\u6c42&#xff0c;\u82e5\u540c\u65f6\u8dd1\u5176\u4ed6\u6a21\u578b&#xff0c;nvidia-smi\u770b\u663e\u5b58\u5360\u7528&#xff0c;\u5fc5\u8981\u65f6\u91cd\u542f\u670d\u52a1\u91ca\u653e<\/li>\n<\/ul>\n<h4>7.4 \u5982\u4f55\u8ba9\u591a\u4eba\u540c\u65f6\u4f7f\u7528\u4e0d\u5361\u987f&#xff1f;<\/h4>\n<p>LightOnOCR-2-1B\u5355\u5b9e\u4f8b\u9002\u5408\u8f7b\u91cf\u5e76\u53d1\u3002\u5982\u9700\u652f\u630110&#043;\u4eba\u540c\u65f6\u4e0a\u4f20&#xff1a;<\/p>\n<ul>\n<li>\u5728start.sh\u4e2d\u4e3avLLM\u589e\u52a0&#8211;tensor-parallel-size 2&#xff08;\u53cc\u5361&#xff09;\u6216&#8211;gpu-memory-utilization 0.9<\/li>\n<li>Nginx\u914d\u7f6e\u4e2dupstream\u5757\u5b9a\u4e49\u591a\u4e2a\u540e\u7aef\u5b9e\u4f8b&#xff08;\u9700\u90e8\u7f72\u591a\u4efd\u670d\u52a1\u5728\u4e0d\u540c\u7aef\u53e3&#xff09;<\/li>\n<li>\u524d\u7aefGradio\u52a0&#8211;share\u53c2\u6570\u751f\u6210\u4e34\u65f6\u5171\u4eab\u94fe\u63a5&#xff08;\u4ec5\u8c03\u8bd5\u7528&#xff0c;\u4e0d\u63a8\u8350\u751f\u4ea7&#xff09;<\/li>\n<\/ul>\n<h3>8. \u603b\u7ed3&#xff1a;\u4f60\u5df2\u638c\u63e1OCR\u670d\u52a1\u4e0a\u7ebf\u7684\u6838\u5fc3\u80fd\u529b<\/h3>\n<p>\u56de\u987e\u6574\u4e2a\u6d41\u7a0b&#xff0c;\u4f60\u5b9e\u9645\u4e0a\u5b8c\u6210\u4e86\u6280\u672f\u6808\u4e2d\u4e09\u4e2a\u5173\u952e\u5c42\u7684\u8d2f\u901a&#xff1a;<\/p>\n<ul>\n<li>\u7f51\u7edc\u5c42&#xff1a;\u4ece\u79c1\u6709IP\u5230\u516c\u7f51IP&#xff0c;\u518d\u5230\u57df\u540d\u89e3\u6790&#xff0c;\u7406\u89e3\u4e86\u201c\u670d\u52a1\u5982\u4f55\u88ab\u5916\u754c\u53d1\u73b0\u201d<\/li>\n<li>\u4ee3\u7406\u5c42&#xff1a;\u7528Nginx\u5b9e\u73b0\u8bf7\u6c42\u8def\u7531\u3001\u534f\u8bae\u8f6c\u6362\u3001\u8d85\u65f6\u63a7\u5236&#xff0c;\u638c\u63e1\u4e86\u201c\u6d41\u91cf\u5982\u4f55\u88ab\u5b89\u5168\u8c03\u5ea6\u201d<\/li>\n<li>\u5b89\u5168\u5c42&#xff1a;\u901a\u8fc7Let&#039;s Encrypt&#043;Certbot\u5b9e\u73b0HTTPS\u81ea\u52a8\u90e8\u7f72\u4e0e\u7eed\u671f&#xff0c;\u5efa\u7acb\u4e86\u201c\u901a\u4fe1\u5982\u4f55\u88ab\u53ef\u4fe1\u52a0\u5bc6\u201d<\/li>\n<\/ul>\n<p>\u8fd9\u4e0d\u518d\u662f\u201c\u8dd1\u901a\u4e00\u4e2aDemo\u201d&#xff0c;\u800c\u662f\u6784\u5efa\u4e86\u4e00\u4e2a\u53ef\u4ea4\u4ed8\u3001\u53ef\u7ef4\u62a4\u3001\u53ef\u6269\u5c55\u7684OCR\u670d\u52a1\u80fd\u529b\u3002\u4e0b\u4e00\u6b65&#xff0c;\u4f60\u53ef\u4ee5&#xff1a;<\/p>\n<ul>\n<li>\u628a\u8fd9\u4e2a\u57df\u540d\u5d4c\u5165\u4f01\u4e1a\u5185\u90e8\u77e5\u8bc6\u5e93&#xff0c;\u5458\u5de5\u62cd\u7167\u5373\u67e5\u5408\u540c\u6761\u6b3e<\/li>\n<li>\u5bf9\u63a5\u5fae\u4fe1\u516c\u4f17\u53f7&#xff0c;\u7528\u6237\u53d1\u9001\u56fe\u7247\u81ea\u52a8\u56de\u590d\u8bc6\u522b\u6587\u5b57<\/li>\n<li>\u7528Python\u811a\u672c\u6279\u91cf\u5904\u7406PDF\u626b\u63cf\u4ef6&#xff0c;\u6bcf\u5929\u51cc\u6668\u81ea\u52a8\u5f52\u6863<\/li>\n<\/ul>\n<p>\u6280\u672f\u7684\u4ef7\u503c&#xff0c;\u4ece\u6765\u4e0d\u5728\u6a21\u578b\u591a\u5927\u3001\u53c2\u6570\u591a\u9ad8&#xff0c;\u800c\u5728\u4e8e\u5b83\u80fd\u5426\u5b89\u9759\u3001\u7a33\u5b9a\u3001\u53ef\u9760\u5730\u89e3\u51b3\u4e00\u4e2a\u771f\u5b9e\u95ee\u9898\u3002\u4f60\u73b0\u5728&#xff0c;\u5df2\u7ecf\u505a\u5230\u4e86\u3002<\/p>\n<hr \/>\n<p>\u83b7\u53d6\u66f4\u591aAI\u955c\u50cf<\/p>\n<p>\u60f3\u63a2\u7d22\u66f4\u591aAI\u955c\u50cf\u548c\u5e94\u7528\u573a\u666f&#xff1f;\u8bbf\u95ee CSDN\u661f\u56fe\u955c\u50cf\u5e7f\u573a&#xff0c;\u63d0\u4f9b\u4e30\u5bcc\u7684\u9884\u7f6e\u955c\u50cf&#xff0c;\u8986\u76d6\u5927\u6a21\u578b\u63a8\u7406\u3001\u56fe\u50cf\u751f\u6210\u3001\u89c6\u9891\u751f\u6210\u3001\u6a21\u578b\u5fae\u8c03\u7b49\u591a\u4e2a\u9886\u57df&#xff0c;\u652f\u6301\u4e00\u952e\u90e8\u7f72\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4<br \/>\n1. \u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u7bc7\u6559\u7a0b<br \/>\n\u4f60\u53ef\u80fd\u5df2\u7ecf\u4e0b\u8f7d\u597d\u4e86LightOnOCR-2-1B\u6a21\u578b&#xff0c;\u4e5f\u6210\u529f\u8fd0\u884c\u4e86\u670d\u52a1&#xff0c;\u4f46\u5f53\u4f60\u60f3\u5728\u516c\u53f8\u5185\u7f51\u5206\u4eab\u7ed9\u540c\u4e8b\u3001\u6216\u8005\u7528\u624b\u673a\u626b\u63cf\u4e8c\u7ef4\u7801\u8bbf\u95ee\u65f6&#xff0c;\u5374\u53d1\u73b0\u53ea\u80fd\u5728\u670d\u52a1\u5668\u672c\u5730\u6253\u5f00http:\/\/localhost:7860\u2014\u2014\u8fd9\u8bf4\u660e\u670d\u52a1\u8fd8\u6ca1\u771f\u6b63\u201c\u8d70\u51fa\u53bb\u201d\u3002<br \/>\n\u66f4\u5e38\u89c1\u7684\u60c5\u51b5\u662f&#xff1a;\u4f60\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u597d\u4e86&#xff0c;\u4f46\u540c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7591,8729,7597,756],"topic":[],"class_list":["post-78854","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-lightonocr","tag-7597","tag-ocr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/78854.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 1. \u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u7bc7\u6559\u7a0b \u4f60\u53ef\u80fd\u5df2\u7ecf\u4e0b\u8f7d\u597d\u4e86LightOnOCR-2-1B\u6a21\u578b&#xff0c;\u4e5f\u6210\u529f\u8fd0\u884c\u4e86\u670d\u52a1&#xff0c;\u4f46\u5f53\u4f60\u60f3\u5728\u516c\u53f8\u5185\u7f51\u5206\u4eab\u7ed9\u540c\u4e8b\u3001\u6216\u8005\u7528\u624b\u673a\u626b\u63cf\u4e8c\u7ef4\u7801\u8bbf\u95ee\u65f6&#xff0c;\u5374\u53d1\u73b0\u53ea\u80fd\u5728\u670d\u52a1\u5668\u672c\u5730\u6253\u5f00http:\/\/localhost:7860\u2014\u2014\u8fd9\u8bf4\u660e\u670d\u52a1\u8fd8\u6ca1\u771f\u6b63\u201c\u8d70\u51fa\u53bb\u201d\u3002 \u66f4\u5e38\u89c1\u7684\u60c5\u51b5\u662f&#xff1a;\u4f60\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u597d\u4e86&#xff0c;\u4f46\u540c\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78854.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-28T05:32:55+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78854.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78854.html\",\"name\":\"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-28T05:32:55+00:00\",\"dateModified\":\"2026-02-28T05:32:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78854.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78854.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78854.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/78854.html","og_locale":"zh_CN","og_type":"article","og_title":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b&#xff1a;\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 1. \u4e3a\u4ec0\u4e48\u9700\u8981\u8fd9\u7bc7\u6559\u7a0b \u4f60\u53ef\u80fd\u5df2\u7ecf\u4e0b\u8f7d\u597d\u4e86LightOnOCR-2-1B\u6a21\u578b&#xff0c;\u4e5f\u6210\u529f\u8fd0\u884c\u4e86\u670d\u52a1&#xff0c;\u4f46\u5f53\u4f60\u60f3\u5728\u516c\u53f8\u5185\u7f51\u5206\u4eab\u7ed9\u540c\u4e8b\u3001\u6216\u8005\u7528\u624b\u673a\u626b\u63cf\u4e8c\u7ef4\u7801\u8bbf\u95ee\u65f6&#xff0c;\u5374\u53d1\u73b0\u53ea\u80fd\u5728\u670d\u52a1\u5668\u672c\u5730\u6253\u5f00http:\/\/localhost:7860\u2014\u2014\u8fd9\u8bf4\u660e\u670d\u52a1\u8fd8\u6ca1\u771f\u6b63\u201c\u8d70\u51fa\u53bb\u201d\u3002 \u66f4\u5e38\u89c1\u7684\u60c5\u51b5\u662f&#xff1a;\u4f60\u5728\u4e91\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u597d\u4e86&#xff0c;\u4f46\u540c","og_url":"https:\/\/www.wsisp.com\/helps\/78854.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-28T05:32:55+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78854.html","url":"https:\/\/www.wsisp.com\/helps\/78854.html","name":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-28T05:32:55+00:00","dateModified":"2026-02-28T05:32:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78854.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78854.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78854.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LightOnOCR-2-1B\u4fdd\u59c6\u7ea7\u6559\u7a0b\uff1a\u4ece\u670d\u52a1\u5668IP\u914d\u7f6e\u5230HTTPS\u53cd\u5411\u4ee3\u7406\u5168\u6b65\u9aa4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=78854"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78854\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78854"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}