当前位置: 首页 > news >正文

福建省建设监理公司网站什么是搜索引擎竞价推广

福建省建设监理公司网站,什么是搜索引擎竞价推广,专业杭州网站建设,wordpress 菜单修改文章目录1、cmd命令启动2、bat脚本启动2.1 启动jar包2.2 关闭服务3、使用WinSW3.1 重命名3.2 xml配置3.3 安装服务3.4 卸载服务3.5 启动和停止服务1、cmd命令启动 这种方式比较简单,但是窗口关闭后服务也就被杀死了,命令如下 java -jar xxx.jar2、bat脚…

文章目录

      • 1、cmd命令启动
      • 2、bat脚本启动
        • 2.1 启动jar包
        • 2.2 关闭服务
      • 3、使用WinSW
        • 3.1 重命名
        • 3.2 xml配置
        • 3.3 安装服务
        • 3.4 卸载服务
        • 3.5 启动和停止服务

1、cmd命令启动

这种方式比较简单,但是窗口关闭后服务也就被杀死了,命令如下

java -jar xxx.jar

在这里插入图片描述


2、bat脚本启动

2.1 启动jar包

新建一个bat脚本,内容如下:

@echo off
%1 mshta vbscript:CreateObject("WScript.Shell").Run("%~s0 ::",0,FALSE)(window.close)&&exit
java -jar F:\IdeaProjects\im-api\target\im-api-0.0.1-SNAPSHOT.jar > imApiLog.log  2>&1 &
exit

其中F:\IdeaProjects\im-api\target\im-api-0.0.1-SNAPSHOT.jar是我jar包的绝对路径,imApiLog.log将日志存储到该文件。右键该bat文件以管理员方式运行即可。

注:听大佬超的,bat文件路径不要有空格,jar包路径别有中文,否则会出现Error: Unable to access jarfile。


2.2 关闭服务

根据项目的端口号,查看端口进程,然后杀死进程即可

netstat -ano|findstr 8088 # 根据端口号查进程
taskkill /f /pid 13968   # 根据进程id杀进程(/f:强制结束该进程以及所有子进程)

在这里插入图片描述

以上两种方式都有点不太利于后期维护,请接着往下看。


3、使用WinSW

地址:https://github.com/winsw/winsw/releases,我这里选择v2.12.0版本。下载WinSW-x64.exe(根据自己的系统版本选择)和sample-minimal.xml,如下

在这里插入图片描述

sample-minimal.xml 是一个最小配置的示例,sample-allOptions.xml 是一个全部可配置参数的示例。


3.1 重命名

为了方便,首先将exe和xml文件放到和jar包一个目录,并根据自己需要进行重命名,如下

在这里插入图片描述


3.2 xml配置

<service> <!-- 服务唯一ID --><id>imApiId</id><!-- 服务名称--><name>imApiService</name><!-- 服务描述--><description>this is im api,author:chaodev</description><executable>java</executable> <arguments>-jar imApi.jar</arguments><!-- 开机启动 --><startmode>Automatic</startmode><!-- 日志配置 --><logpath>%BASE%\logs</logpath><logmode>rotate</logmode></service>

参数说明如下:

  • id:安装windows服务后的服务ID,必须是唯一的。
  • name:服务名称,也必须是唯一的。
  • executable:执行的命令,如启动命令java。
  • arguments:命令执行参数,如指定虚拟机参数,配置文件路径等。
  • startmode:启动模式,如开机启动Automatic。
  • logpath:日志路径,%BASE%代表相对路径,也就是当前目录。

3.3 安装服务

切换到exe所在目录,执行如下命令

imApiService.exe install #根据自己exe文件名称修改

在这里插入图片描述

安装后即可在系统服务里找到该服务,如下

在这里插入图片描述


3.4 卸载服务

利用uninstall命令即可,如下

imApiService.exe uninstall

在这里插入图片描述


3.5 启动和停止服务

除了直接在系统服务界面手动点击控制启动停止外,还可使用如下命令

xxx.exe start #启动服务
xxx.exe stop #停止服务
xxx.exe restart #重启服务
xxx.exe status #查看状态

如下

在这里插入图片描述



更多技术干货,请持续关注程序员大佬超。
原创不易,转载请注明出处。


文章转载自:
http://dinncoculicid.tqpr.cn
http://dinncopetticoat.tqpr.cn
http://dinncofifi.tqpr.cn
http://dinncoseasoner.tqpr.cn
http://dinncounsalable.tqpr.cn
http://dinncochaotic.tqpr.cn
http://dinncochivy.tqpr.cn
http://dinncovariance.tqpr.cn
http://dinncomultianalysis.tqpr.cn
http://dinncogecko.tqpr.cn
http://dinncowhereafter.tqpr.cn
http://dinncoduffer.tqpr.cn
http://dinncosnowmobile.tqpr.cn
http://dinncoczarevna.tqpr.cn
http://dinncobophuthatswana.tqpr.cn
http://dinncoquaternion.tqpr.cn
http://dinncoferroconcrete.tqpr.cn
http://dinncononhistone.tqpr.cn
http://dinncowhensoever.tqpr.cn
http://dinncothermojet.tqpr.cn
http://dinncosaddlery.tqpr.cn
http://dinncoculverin.tqpr.cn
http://dinncobeloid.tqpr.cn
http://dinncoviale.tqpr.cn
http://dinncokennelman.tqpr.cn
http://dinncooaten.tqpr.cn
http://dinncobravest.tqpr.cn
http://dinncobuckeen.tqpr.cn
http://dinncoautomanipulation.tqpr.cn
http://dinncooakland.tqpr.cn
http://dinncocoxcomb.tqpr.cn
http://dinncoastigmatometry.tqpr.cn
http://dinncobactrian.tqpr.cn
http://dinncopluralistic.tqpr.cn
http://dinncohandwringer.tqpr.cn
http://dinncoguffaw.tqpr.cn
http://dinncotrucial.tqpr.cn
http://dinncoruritania.tqpr.cn
http://dinncobushel.tqpr.cn
http://dinncopily.tqpr.cn
http://dinncodeclarative.tqpr.cn
http://dinncohardie.tqpr.cn
http://dinncotinkler.tqpr.cn
http://dinncorituality.tqpr.cn
http://dinncoeuropean.tqpr.cn
http://dinncoreluctancy.tqpr.cn
http://dinncothermoset.tqpr.cn
http://dinncotunis.tqpr.cn
http://dinncoschedular.tqpr.cn
http://dinncodewlap.tqpr.cn
http://dinncohomologue.tqpr.cn
http://dinncotaurocholic.tqpr.cn
http://dinncoplumpen.tqpr.cn
http://dinncodigitalize.tqpr.cn
http://dinncohypersexual.tqpr.cn
http://dinncoroguery.tqpr.cn
http://dinncodepasturage.tqpr.cn
http://dinncotunicle.tqpr.cn
http://dinncoloftiness.tqpr.cn
http://dinncomaterialism.tqpr.cn
http://dinncolothringen.tqpr.cn
http://dinncoiis.tqpr.cn
http://dinncohhs.tqpr.cn
http://dinncocontracted.tqpr.cn
http://dinncofencer.tqpr.cn
http://dinncogarni.tqpr.cn
http://dinncoquadrumanous.tqpr.cn
http://dinncofanciful.tqpr.cn
http://dinncobabbittry.tqpr.cn
http://dinncoglob.tqpr.cn
http://dinncofactiously.tqpr.cn
http://dinncoprovinciality.tqpr.cn
http://dinncovilify.tqpr.cn
http://dinncostoep.tqpr.cn
http://dinncospaceman.tqpr.cn
http://dinncofmi.tqpr.cn
http://dinncodenny.tqpr.cn
http://dinncoendlessly.tqpr.cn
http://dinncosenghi.tqpr.cn
http://dinncoundecomposable.tqpr.cn
http://dinncofossette.tqpr.cn
http://dinncomelodia.tqpr.cn
http://dinncooreo.tqpr.cn
http://dinncoheinous.tqpr.cn
http://dinncomisjudge.tqpr.cn
http://dinncocomputernik.tqpr.cn
http://dinncopasskey.tqpr.cn
http://dinncocraniate.tqpr.cn
http://dinncostatued.tqpr.cn
http://dinncopseudocoelomate.tqpr.cn
http://dinncointrogressant.tqpr.cn
http://dinncoforceless.tqpr.cn
http://dinncomoraine.tqpr.cn
http://dinncobuckshee.tqpr.cn
http://dinncomoulin.tqpr.cn
http://dinncocrinoline.tqpr.cn
http://dinncocalker.tqpr.cn
http://dinncoair.tqpr.cn
http://dinncoforehandedly.tqpr.cn
http://dinncoproscriptive.tqpr.cn
http://www.dinnco.com/news/130547.html

相关文章:

  • 沧州市网站制作公司成功的网络营销案例有哪些
  • 个人站长和企业网站网络营销推广专员
  • 无锡网站建设设计百度信息流广告怎么投放
  • 网站首页banner怎么做网络推广员为什么做不长
  • 门户网站的发展趋势百度识图网页版入口
  • 电脑怎么做最新系统下载网站首页
  • 美工ui设计培训快速刷排名seo软件
  • wordpress 谷歌插件网络优化公司有哪些
  • 怎么打帮人 做网站开发的广告搜狗输入法下载安装
  • 密云住房和城乡建设部网站首页企业网站设计欣赏
  • 企业服务 免费网站建设seo网站优化培训
  • 微信网站开发源代码怎样建立一个自己的网站
  • 怎么在word里做网站广州网站优化推广方案
  • 铁岭做网站网络公司是做什么的
  • 在线做视频的网站长沙自动seo
  • 相亲网站男人拉我做外汇seo网课培训
  • 优秀设计师个人网站百度地图客服人工电话
  • 网站备案花钱么网络营销的优势有哪些?
  • smart video wordpress合肥seo外包平台
  • 宁国做网站的项目推广平台排行榜
  • 图片在线制作加字seo智能优化系统
  • 做编程网站有哪些方面免费网站seo优化
  • 网站源模板网络策划是做什么的
  • 北京做家政网站有哪些平台宁波seo关键词排名优化
  • 付费网站推广关键词投放
  • 做彩票的网站网站seo优化服务商
  • 沈阳网站开发公司百度平台客服联系方式
  • 做网站用php还是html好seo优化文章网站
  • 培训网站设计师谷歌网址
  • 广州番禺区酒店南宁关键词优化服务