{"id":413,"date":"2012-08-17T07:14:43","date_gmt":"2012-08-17T07:14:43","guid":{"rendered":"http:\/\/ahsiu.com\/?p=413"},"modified":"2012-08-17T07:14:43","modified_gmt":"2012-08-17T07:14:43","slug":"sc-create-%e5%88%9b%e5%bb%ba%e6%9c%8d%e5%8a%a1%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/blog.xiunian.wang\/?p=413","title":{"rendered":"sc create \u521b\u5efa\u670d\u52a1\u547d\u4ee4"},"content":{"rendered":"<p>\u7528sc\u00a0 create&#8212;-\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\uff08\u589e\u52a0\u5230\u6ce8\u518c\u8868\u4e2d\uff09<br \/>\n\u5982\u4e0b:\u5728\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\u6267\u884c\uff1a<br \/>\nsc create TestService binpath= &#8220;c:in estapp.exe&#8221; displayname= &#8220;TestService&#8221; depend= Tcpip start= auto<br \/>\n<span style=\"color: #ff0000;\">\u6ce8\u610f\u8fd9\u91cc\u7684\u683c\u5f0f\uff0c\u201c=\u201d\u540e\u9762\u662f\u5fc5\u987b\u7a7a\u4e00\u683c\u7684\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u9519\u8bef\u3002<\/span><br \/>\n\u5728\u63d0\u793a\u5efa\u7acb\u6210\u529f\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u201cnet start TestService\u201d<br \/>\n\u6765\u542f\u52a8\u670d\u52a1\uff0c\u6216\u8005\u53ef\u4ee5\u76f4\u63a5\u5728\u201c\u7ba1\u7406\u5de5\u5177\u201d\u7684\u201c\u670d\u52a1\u201d\u4e2d\u76f4\u63a5\u542f\u52a8\u3002<br \/>\nC:Documents and SettingsAdministrator&gt;sc create<br \/>\n\u63cf\u8ff0:<br \/>\n\u5728\u6ce8\u518c\u8868\u548c\u670d\u52a1\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u670d\u52a1\u9879\u3002<br \/>\n\u7528\u6cd5:<br \/>\nsc &lt;server&gt; create [service name] [binPath= ] &lt;option1&gt; &lt;option2&gt;&#8230;<br \/>\n\u9009\u9879:<br \/>\n\u6ce8\u610f: \u9009\u9879\u540d\u79f0\u5305\u62ec\u7b49\u53f7\u3002<br \/>\ntype= &lt;own|share|interact|kernel|filesys|rec&gt;<br \/>\n(\u9ed8\u8ba4 = own)<br \/>\nstart= &lt;boot|system|auto|demand|disabled&gt;<br \/>\n(\u9ed8\u8ba4 = demand)<br \/>\nerror= &lt;normal|severe|critical|ignore&gt;<br \/>\n(\u9ed8\u8ba4 = normal)<br \/>\nbinPath= &lt;BinaryPathName&gt;<br \/>\ngroup= &lt;LoadOrderGroup&gt;<br \/>\ntag= &lt;yes|no&gt;<br \/>\ndepend= &lt;\u4f9d\u5b58\u5173\u7cfb(\u4ee5 \/ (\u659c\u6760) \u5206\u9694)&gt;<br \/>\nobj= &lt;AccountName|ObjectName&gt;<br \/>\n(\u9ed8\u8ba4 = LocalSystem)<br \/>\nDisplayName= &lt;\u663e\u793a\u540d\u79f0&gt;<br \/>\npassword= &lt;\u5bc6\u7801&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528sc\u00a0 create&#8212;-\u521b\u5efa\u4e00\u4e2a\u670d\u52a1\uff08\u589e\u52a0\u5230\u6ce8\u518c\u8868\u4e2d\uff09 \u5982\u4e0b:\u5728\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\u6267\u884c\uff1a sc create TestService binpath= &#8220;c:in estapp.exe&#8221; displayname= &#8220;TestService&#8221; depend= Tcpip start= auto \u6ce8\u610f\u8fd9\u91cc\u7684\u683c\u5f0f\uff0c\u201c=\u201d\u540e\u9762\u662f\u5fc5\u987b\u7a7a\u4e00\u683c\u7684\uff0c\u5426\u5219\u4f1a\u51fa\u73b0\u9519\u8bef\u3002 \u5728\u63d0\u793a\u5efa\u7acb\u6210\u529f\u540e\uff0c\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u201cnet start TestService\u201d \u6765\u542f\u52a8\u670d\u52a1\uff0c\u6216\u8005\u53ef\u4ee5\u76f4\u63a5\u5728\u201c\u7ba1\u7406\u5de5\u5177\u201d\u7684\u201c\u670d\u52a1\u201d\u4e2d\u76f4\u63a5\u542f\u52a8\u3002 C:Documents and SettingsAdministrator&gt;sc create \u63cf\u8ff0: \u5728\u6ce8\u518c\u8868\u548c\u670d\u52a1\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u670d\u52a1\u9879\u3002 \u7528\u6cd5: sc &lt;server&gt; create [service name] [binPath= ] &lt;option1&gt; &lt;option2&gt;&#8230; \u9009\u9879: \u6ce8\u610f: \u9009\u9879\u540d\u79f0\u5305\u62ec\u7b49\u53f7\u3002 type= &lt;own|share|interact|kernel|filesys|rec&gt; (\u9ed8\u8ba4 = own) start= &lt;boot|system|auto|demand|disabled&gt; (\u9ed8\u8ba4 = demand) error= &lt;normal|severe|critical|ignore&gt; (\u9ed8\u8ba4 = normal) binPath= &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.xiunian.wang\/?p=413\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;sc create \u521b\u5efa\u670d\u52a1\u547d\u4ee4&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts\/413"}],"collection":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=413"}],"version-history":[{"count":0,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=\/wp\/v2\/posts\/413\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=413"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=413"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xiunian.wang\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}