Skip to content

Commit 476a8b9

Browse files
committed
update
0 parents  commit 476a8b9

File tree

4 files changed

+185
-0
lines changed

4 files changed

+185
-0
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Lucifer
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Windows Memcached Server
3+
created: '2021-08-15 12:00:00'
4+
modified: '2021-08-15 12:00:00'
5+
version: '1.16.10'
6+
---
7+
8+
## Windows Memcached Server
9+
#### 说明:
10+
> `Memcached`官方源码中编译的`Windows`平台可用的`Memcached Server`程序, 分别编译的版本为`cygwin``msys2`, 功能上无差别, 可任意选择. 可选择`exe`安装程序自动安装为Windows系统服务,或可配合nssm手动安装为Windows服务开机自启动. 方便Windows环境下Memcached的调试和日常开发使用.
11+
12+
### 安装为系统服务:
13+
> [此处](https://github.com/X-Lucifer/win-memcached/releases)任意选择`.exe`后缀的可执行程序下载即可. `msys2``cygwin`版本功能无差别.
14+
#### 相关源码和其他软件
15+
1. `Memcached`源码: [https://github.com/memcached/memcached](https://github.com/memcached/memcached)
16+
2. `Memcached`官网: [https://memcached.org/](https://memcached.org/)
17+
3. `msys2`: [https://www.msys2.org/](https://www.msys2.org/)
18+
4. `cygwin`: [https://www.cygwin.com/](https://www.cygwin.com/)
19+
5. `nssm`: [https://www.nssm.cc/](https://www.nssm.cc/)

inno script/memcached-cygwin.iss

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
; Script generated by the Inno Script Studio Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "Memcached"
5+
#define MyAppPublisher "Lucifer"
6+
#define MyAppURL "https://github.com/X-Lucifer/win-memcached"
7+
#define MyAppExeName "nssm.exe"
8+
#define MyCopyright "Copyright © Lucifer. All Rights Reserved."
9+
#define MyDescription "Windows Memcached Service"
10+
#define MyAppLowerName "memcached"
11+
#define MyAppPlatform "cygwin"
12+
#define MyAppRuntime "cygwin1.dll"
13+
;升级需要更新的代码块
14+
#define MyPath "D:\Publish\Memcached"
15+
#define MyAppVersion "1.6.10"
16+
17+
[Setup]
18+
; NOTE: The value of AppId uniquely identifies this application.
19+
; Do not use the same AppId value in installers for other applications.
20+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
21+
AppId={{7E7F422D-B9D0-475B-AB2C-D872617EE0FE}
22+
AppName={#MyAppName}
23+
AppVersion={#MyAppVersion}
24+
AppVerName={#MyAppName} {#MyAppVersion}
25+
AppPublisher={#MyAppPublisher}
26+
AppPublisherURL={#MyAppURL}
27+
AppSupportURL={#MyAppURL}
28+
AppUpdatesURL={#MyAppURL}
29+
DefaultDirName={pf}\{#MyAppName}
30+
DefaultGroupName={#MyAppName}
31+
DisableProgramGroupPage=yes
32+
OutputDir={#MyPath}
33+
OutputBaseFilename={#MyAppLowerName}-{#MyAppVersion}-{#MyAppPlatform}
34+
SetupIconFile={#MyPath}\Memcached.ico
35+
Compression=lzma
36+
SolidCompression=yes
37+
WizardStyle=modern
38+
DisableReadyPage=True
39+
DisableFinishedPage=True
40+
AppCopyright={#MyCopyright}
41+
EnableDirDoesntExistWarning=True
42+
DirExistsWarning=no
43+
UninstallDisplayIcon={uninstallexe}
44+
UninstallDisplayName={#MyAppName}
45+
ArchitecturesInstallIn64BitMode=x64 ia64
46+
VersionInfoVersion={#MyAppVersion}
47+
VersionInfoCompany={#MyAppPublisher}
48+
VersionInfoDescription={#MyDescription}
49+
VersionInfoTextVersion={#MyAppVersion}
50+
VersionInfoProductName={#MyAppName}
51+
UsePreviousGroup=False
52+
AppendDefaultGroupName=False
53+
54+
[Languages]
55+
Name: "english"; MessagesFile: "compiler:Default.isl"
56+
57+
[Files]
58+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\nssm.exe"; DestDir: "{app}"; Flags: ignoreversion
59+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppRuntime}"; DestDir: "{app}"; Flags: ignoreversion
60+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppLowerName}.exe"; DestDir: "{app}"; Flags: ignoreversion
61+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_core-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion
62+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_extra-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion
63+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_openssl-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion
64+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent_pthreads-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion
65+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\cygevent-2-1-7.dll"; DestDir: "{app}"; Flags: ignoreversion
66+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
67+
68+
[Run]
69+
Filename: "{app}\nssm.exe"; Parameters: "install {#MyAppName} ""{app}\{#MyAppLowerName}.exe"""; WorkingDir: "{app}\"; Description: "安装为Windows服务";
70+
Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} DisplayName {#MyAppName}"; WorkingDir: "{app}"; Description: "设置服务名称";
71+
Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} Description ""{#MyDescription}"""; WorkingDir: "{app}"; Description: "设置服务描述";
72+
73+
[UninstallRun]
74+
Filename: "{app}\nssm.exe"; Parameters: "stop {#MyAppName}";
75+
Filename: "{app}\nssm.exe"; Parameters: "remove {#MyAppName} confirm";

inno script/memcached-msys2.iss

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
; Script generated by the Inno Script Studio Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "Memcached"
5+
#define MyAppPublisher "Lucifer"
6+
#define MyAppURL "https://github.com/X-Lucifer/win-memcached"
7+
#define MyAppExeName "nssm.exe"
8+
#define MyCopyright "Copyright © Lucifer. All Rights Reserved."
9+
#define MyDescription "Windows Memcached Service"
10+
#define MyAppLowerName "memcached"
11+
#define MyAppPlatform "msys2"
12+
#define MyAppRuntime "msys-2.0.dll"
13+
;升级需要更新的代码块
14+
#define MyPath "D:\Publish\Memcached"
15+
#define MyAppVersion "1.6.10"
16+
17+
[Setup]
18+
; NOTE: The value of AppId uniquely identifies this application.
19+
; Do not use the same AppId value in installers for other applications.
20+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
21+
AppId={{54B71439-76CC-4BAB-8E94-638DD43FC70A}
22+
AppName={#MyAppName}
23+
AppVersion={#MyAppVersion}
24+
AppVerName={#MyAppName} {#MyAppVersion}
25+
AppPublisher={#MyAppPublisher}
26+
AppPublisherURL={#MyAppURL}
27+
AppSupportURL={#MyAppURL}
28+
AppUpdatesURL={#MyAppURL}
29+
DefaultDirName={pf}\{#MyAppName}
30+
DefaultGroupName={#MyAppName}
31+
DisableProgramGroupPage=yes
32+
OutputDir={#MyPath}
33+
OutputBaseFilename={#MyAppLowerName}-{#MyAppVersion}-{#MyAppPlatform}
34+
SetupIconFile={#MyPath}\memcached.ico
35+
Compression=lzma
36+
SolidCompression=yes
37+
WizardStyle=modern
38+
DisableReadyPage=True
39+
DisableFinishedPage=True
40+
AppCopyright={#MyCopyright}
41+
EnableDirDoesntExistWarning=True
42+
DirExistsWarning=no
43+
UninstallDisplayIcon={uninstallexe}
44+
UninstallDisplayName={#MyAppName}
45+
ArchitecturesInstallIn64BitMode=x64 ia64
46+
VersionInfoVersion={#MyAppVersion}
47+
VersionInfoCompany={#MyAppPublisher}
48+
VersionInfoDescription={#MyDescription}
49+
VersionInfoTextVersion={#MyAppVersion}
50+
VersionInfoProductName={#MyAppName}
51+
UsePreviousGroup=False
52+
AppendDefaultGroupName=False
53+
54+
[Languages]
55+
Name: "english"; MessagesFile: "compiler:Default.isl"
56+
57+
[Files]
58+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\nssm.exe"; DestDir: "{app}"; Flags: ignoreversion
59+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppRuntime}"; DestDir: "{app}"; Flags: ignoreversion
60+
Source: "{#MyPath}\{#MyAppLowerName}-{#MyAppPlatform}\{#MyAppLowerName}.exe"; DestDir: "{app}"; Flags: ignoreversion
61+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
62+
63+
[Run]
64+
Filename: "{app}\nssm.exe"; Parameters: "install {#MyAppName} ""{app}\{#MyAppLowerName}.exe"""; WorkingDir: "{app}\"; Description: "安装为Windows服务";
65+
Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} DisplayName {#MyAppName}"; WorkingDir: "{app}"; Description: "设置服务名称";
66+
Filename: "{app}\nssm.exe"; Parameters: "set {#MyAppName} Description ""{#MyDescription}"""; WorkingDir: "{app}"; Description: "设置服务描述";
67+
68+
[UninstallRun]
69+
Filename: "{app}\nssm.exe"; Parameters: "stop {#MyAppName}";
70+
Filename: "{app}\nssm.exe"; Parameters: "remove {#MyAppName} confirm";

0 commit comments

Comments
 (0)