Skip to content

Commit

Permalink
Site updated: 2023-08-09 19:01:47
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzlw committed Aug 9, 2023
1 parent 74b05b7 commit 8e256a0
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion 2023/07/05/trace-of-line-01/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="不存在的历史,勾起了石月仙的注意,随着找寻真相的深入,一个隐瞒了全世界的阴谋浮出水面。而对于人类,阴谋何来,何从,何去?「第三次科技革命后,人类进入信息时代,信息化开始影响人类的历史进程……」「为什么初中高中上过的还要再上一遍啊?我都快烦死了。」石月仙在心中自言自语道,眼睛无神地看着教授在全息屏上指指点点。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-07-05T14:20:06.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="飞石">
<meta property="article:tag" content="小说">
Expand Down
2 changes: 1 addition & 1 deletion 2023/07/05/zhihu-aac-old/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://blog.cxzlw.top/img/image.png">
<meta property="article:published_time" content="2023-07-04T17:49:31.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="Python">
<meta property="article:tag" content="cxzlw">
Expand Down
2 changes: 1 addition & 1 deletion 2023/07/06/zerotier-planet-convert/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="由于国内特殊的网络原因,Zerotier 官方提供的 Planet 用户体验不佳。为此,不少人选择自建私有 Moon,甚至私有 Planet 服务器。然而,正如官方文档所说,使用私有 Planet 服务器会使你的节点无法找到其他的标准节点。本文试图提出一种方案在使用私有 Planet 服务器的同时与标准节点通信。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-07-06T04:37:41.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="cxzlw">
<meta property="article:tag" content="Zerotier">
Expand Down
2 changes: 1 addition & 1 deletion 2023/07/10/trace-of-line-02/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="不存在的历史,勾起了石月仙的注意,随着找寻真相的深入,一个隐瞒了全世界的阴谋浮出水面。而对于人类,阴谋何来,何从,何去?「你家里关于知识大革命真实历史的藏书消失了,不仅如此,你对于知识大革命原有的记忆也消失了。这说明什么?」「说明有人想彻底地掩埋真相?」">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-07-10T15:01:06.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="飞石">
<meta property="article:tag" content="小说">
Expand Down
2 changes: 1 addition & 1 deletion 2023/08/04/permission-system-design-share/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="最近在参与某 OJ 的开发,过程中我们需要一个权限系统。作为一个热爱 MC 的开发者,我很喜欢 luckperms 的设计,于是这个小东西就出来了。在这里给大家分享我们的权限系统设计。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-08-04T07:32:59.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="权限系统">
<meta property="article:tag" content="Python">
Expand Down
2 changes: 1 addition & 1 deletion 2023/08/04/test-latex/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="$$E&#x3D;mc^2$$">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-08-04T06:35:08.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="创新者老王">
<meta property="article:tag" content="创新者.老王">
Expand Down
13 changes: 9 additions & 4 deletions 2023/08/08/python-to-windows-service/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
<meta name="author" content="cxzlw">
<meta name="keywords" content="创新者老王,创新者.老王,博客,技术博客,老王,创新者,Earthno1,FatalError">

<meta name="description" content="今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。 一、安装安装主要是 pywin32 和 nuitka 1pip install nuitka p">
<meta name="description" content="今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。">
<meta property="og:type" content="article">
<meta property="og:title" content="将 Python 项目打包为 Windows service">
<meta property="og:url" content="https://blog.cxzlw.top/2023/08/08/python-to-windows-service/index.html">
<meta property="og:site_name" content="创新者.老王的博客">
<meta property="og:description" content="今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。 一、安装安装主要是 pywin32 和 nuitka 1pip install nuitka p">
<meta property="og:description" content="今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-08-08T12:15:13.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="Python">
<meta property="article:tag" content="cxzlw">
Expand Down Expand Up @@ -255,7 +255,7 @@



15 分钟
16 分钟

</span>

Expand Down Expand Up @@ -306,6 +306,10 @@ <h1 id="seo-header">将 Python 项目打包为 Windows service</h1>
<div class="markdown-body">

<p>今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 <code>win32service</code> 这个东西,那自然要看看。</p>
<div class="note note-warning">
<p>前排提醒,我还没解决没网络权限的问题 :(</p>
</div>

<h2 id="一、安装"><a href="#一、安装" class="headerlink" title="一、安装"></a>一、安装</h2><p>安装主要是 <code>pywin32</code><code>nuitka</code></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">pip install nuitka pywin32<br></code></pre></td></tr></table></figure>

Expand Down Expand Up @@ -336,6 +340,7 @@ <h2 id="三、运行-安装"><a href="#三、运行-安装" class="headerlink" t
<figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs batch">windows_service_entry.exe stop<br></code></pre></td></tr></table></figure>

<h2 id="四、限制"><a href="#四、限制" class="headerlink" title="四、限制"></a>四、限制</h2><p>需要注意的是,这样跑起来的 service 并没有权限访问网络。这个问题到现在我也没解决,可以期待一下接下来的一篇文章。</p>
<p>唉,要说运行一个 Web server 肯定是失败了。但是作为一个 Windows service,还是可以跑的……</p>
<p>同时,如果有相应的解决方案的,欢迎告诉我,谢谢。</p>


Expand Down
2 changes: 1 addition & 1 deletion about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<meta property="og:description" content="欢迎来到我的博客">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2023-07-02T17:01:41.000Z">
<meta property="article:modified_time" content="2023-08-09T09:11:50.969Z">
<meta property="article:modified_time" content="2023-08-09T11:01:29.230Z">
<meta property="article:author" content="cxzlw">
<meta property="article:tag" content="创新者老王">
<meta property="article:tag" content="创新者.老王">
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ <h2 class="index-header">

<a class="index-excerpt index-excerpt__noimg" href="/2023/08/08/python-to-windows-service/" target="_self">
<div>
今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。 一、安装安装主要是 pywin32 和 nuitka 1pip install nuitka p
今天想把一个 Python 项目用 Nuitka 打包后设为开机自启。突然发现 Nuitka Commercial 可以把 Python 项目打包为 Windows service, 然而要钱(这周生活费够不够我吃的都是个问题……)。当然人家也给出了 win32service 这个东西,那自然要看看。
</div>
</a>

Expand Down
2 changes: 1 addition & 1 deletion local-search.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 8e256a0

Please sign in to comment.