首页 > 系统相关 >使用WinSW将nacos安装为windows服务

使用WinSW将nacos安装为windows服务

时间:2022-12-22 16:46:06浏览次数:59  
标签:exe service windows nacos green WinSW 2.0

1、下载WinSW:https://github.com/winsw/winsw/releases,此处下载WinSW v2.11.0版,以下几个版本都行:

 

 此处使用WinSW-x64.exe

2、将WinSW-x64.exe重命名为nacos-service.exe,并拷贝到nacos根目录

3、在nacos根目录新建一个nacos-service.xml的文件,编码格式为UTF-8,内容如下:

 1 <service>
 2   
 3   <!-- ID of the service. It should be unique across the Windows system-->
 4   <id>Nacos2.0.4</id>
 5   <!-- Display name of the service -->
 6   <name>Nacos2</name>
 7   <!-- Service description -->
 8   <description>Nacos2.0.4</description>
 9   <logpath>E:\green\nacos-2.0.4\logs</logpath>
10   <!-- Path to the executable, which should be started -->
11   <executable>E:\green\nacos-2.0.4\bin\startup.cmd</executable>
12   <stopexecutable>E:\green\nacos-2.0.4\bin\shutdown.cmd</stopexecutable>
13   <startmode>Automatic</startmode>
14 </service>

4、安装服务nacos-service install

5、删除服务nacos-service uninstall

 

标签:exe,service,windows,nacos,green,WinSW,2.0
From: https://www.cnblogs.com/simon-xie/p/16999083.html

相关文章

  • windows 环境npm或yarn安装 node-sass失败的问题
    先说结论是,使用npm最后成功,没有去专门下载安装python27packjson.json我没有删除,使用降node版本的方法解决了,但不知道是不是最优1、中间最主要操作是:使用nvm管理node版......
  • Nacos集群启动注意事项
    简介Nacos是阿里巴巴开源的一套服务注册发现的应用使用简单灵活,是springCloudAlibaba的组成部分现在拆分微服务的部署情况下,极大的需求nacos服务作为支撑单点情况......
  • nginx学习记录【一】在windows上的安装nginx的教程
    1、下载地址http://nginx.org/en/download.html2、选择windows版本如下图:   3、解压并运行解压到指定目录,如下图 打开cmd,然后cd到那个目录,如下图: ......
  • Windows安全事件ID清单
    ID desc1100 事件记录服务已关闭1101 审计事件已被运输中断。1102 审核日志已清除1104 安全日志现已满1105 事件日志自动备份1108 事件日志记录服务遇到错误4608 Wi......
  • Windows10/11中VirtualBox7.0安装CentOS Stream 8
    Windows10/11中VirtualBox安装CentOSStream8二.虚拟机内安装0.安装选择Testthismedia&InstallCentOSStream8-stream一).系统设置(SYSTEM)1.磁盘分区Instal......
  • Windows 平台下 Go 语言的安装和环境变量设置
    1.Go语言SDK安装包下载和安装最新稳定版1.5.3安装包go1.5.3.windows-amd64.msi下载地址https://golang.org/dl/,大小约69MB(作者上传了一份该版本安装包到CSDN......
  • windows--cmake与c++的使用教程(16)
    1概述本文基于前文环境本节目标:macro编写与函数编写2macro与function可类比C语言中的宏定义与函数CMakefunction传递参数时,不用传递参数类型cmakemacro......
  • Windows Server 2012 R2 Standard安装mellanox网卡驱动
    原因:我的系统是WindowsServer2012R2Standard首先我是想要安装mellanox网卡驱动,然后系统让我安装WindowsServer2012R2安装补丁KB2999226思路:经过网上查找资料安装......
  • 禁止windows系统自动更新
    第一步win+r,输入services.msc找到WindowsUpdate单击 常规->启动类型选择禁用。恢复->第一次失败选择无操作最后应用保存  第二步win+r,......
  • itop3568开发板Windows安装RKTool驱动
    在烧写镜像之前首先需要安装RKTool驱动。RKTool驱动在网盘资料“iTOP-3568开发板\01_【iTOP-RK3568开发板】基础资料\02_iTOP-RK3568开发板烧写工具及驱动”路径下。......