`
do692do
  • 浏览: 22509 次
最近访客 更多访客>>
社区版块
存档分类
最新评论

Running as a Windows Service

 
阅读更多

Running as a Windows Service
2011年10月01日
  If you want to run instiki as a windows service, you can do it by using the programsSRVINSTW.EXE andSRVANY.EXE that come with the windowsNT/ 2000 / XP resource kit. If your installation is missing these programs, they are available here. Run SRVINSTW.EXE
  1. Put both files into the system32 system directory.
  2. run SRVINSTW.EXE
  3. Select Install as a service, Local Machine
  4. Give your service any name you desire
  5. When prompted for the path to the service, give the path to SRVANY.EXE in your system32 directory
  6. Select Service is its own process
  7. Set the login credentials. On Windows, System account is the super-root: it’s the highest user in the chain, even higher than Administrator. This will work and allow Instiki access to your disks, however, it may be a security risk. You can also create a new user in Windows, give that user write permissions on the Instiki storage directory, and Instiki will be relatively sandboxed. Choice is yours.
  Edit your registry
  1. Run regedit.exe
  2. Go to
  HKEY_LOCAL_MACHINE\SYSTEM\Current Control Set\Services\
  (the name you picked in step 4 above)
  3. Add a key = ”Parameters”
  4. Add a string value = ”Application” (in the Parameters key you just created). Set this to the command to run your wiki.
  1. For Instiki 0.9.x-0.10.x
  c:\ruby\bin\ruby.exe C:\PROGRA~1\instiki-0.9.1\instiki.rb -p 2500 -t C:\PROGRA~1\instiki-0.9.1\storage\
  (or use rubyw.exe) (Using C:\PROGRA~1\... instead of “C:\Program files” will avoid some problems if instiki is in that directory)
  2. For Instiki 0.11.x
  c:\ruby\bin\ruby.exe c:\[path to instiki]\[path to script(s)\server -e production
  e.g.
  c:\ruby\bin\ruby.exe c:\instiki\script\server -e production
  5. (Optional, only try this if it doesn’t work) Add a string value = ”AppDirectory”. Set this to the path to ruby.exe. e.g.
  c:\ruby\bin\
  Ensure sqlite dll is available
  You can either add the path ‘[instiki home directory]\lib\native\win32’ to your path or drop the two files found there in System32
  Don’t Restart your machine!
  1. Under Windows 2000/XP, you can right click My Computer, click Manage, then go to Services and Applications. Click Services, and you will see a list of all the services on the machine. Go to the service you just made, right click, and click Start. This should start the service and load Instiki!
  Under Windows NT, there’s a Services applet in the Control Panel. It’s the same deal there, too.
  1. Check! Open your browser and point it to http://localhost:2500 (or if you changed the port, you know what you need to do.) Did it work?
  2. If it didn’t work, go to Control Panel>Administrative Tools>Services. Here you can find your service and change the settings. Maybe try a different User? Try System for troubleshooting. Check the Security Settings on the Instiki directory. berita terbaru tv online mivo handphone terbaru berita terkini news and gadgets free download mp3 gadgets new trends android news trends berita unik batik tasikmalaya blogger tasik free download software bordir tasikmalaya kontes seo dunia maya
  I found that didn’t quite work for me, but deleting Step #5 in your Registry would cause this to work properly.
分享到:
评论

相关推荐

    Running cipango-distribution-2.0.0 as Windows Service

    NULL 博文链接:https://leohome.iteye.com/blog/1346760

    apache资料详述

    Running Apache as a Service You can install Apache as a Windows NT service as follows from the command prompt at the Apache bin subdirectory: httpd.exe -k install -----建立window服务 service will be ...

    Windows 10 Inside Out, Third Edition.pdf

    Windows 10 because, quite frankly, we were excited by the possibilities of “Windows as a service.” As we predicted in the first edition of this book, published shortly after the initial release of ...

    Windows PowerShell 6: Essentials for Administration

    Configuring service options, such as logon and recovery Joining computers to a domain Renaming computers Restarting or shutting down computers remotely Enabling or disabling system restore Creating ...

    Windows MicroXP 0.82[Microsoft Windows XP SP3原版加工成的微型XP系统,=99.9%个完整XP]

    Windows Media Player 11 from Microsoft's downloads section, you will need to "validate" windows by running the "GenuineCheck.exe" file that Microsoft asks you to download as part of the "Windows ...

    Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications

    The Windows Communication Foundation 4.0 (WCF 4.0) is a .NET-based application programming interface for building and running connected systems. It enables secure and reliable communication among ...

    Programming Windows Store Apps with C#

    To develop the app, you’ll work with the same system details and design specs that apply to retail apps, such as persistence, backend service, and Windows 8 features for sharing and search....

    Utilities for Windows NT 源码

    Besides my research work I am responsible for a couple of computers at the physics department of the University of Mainz which are running under Windows NT. Therefore I started developing some ...

    Rails for .NET Developers (Facets of Ruby)

    we'll help you get up and running as a Ruby on Rails developer on any operating system: Windows, Mac, or Linux. We start with a gentle introduction to the object-oriented Ruby language with examples ...

    Pro WF 4.5.pdf

    With the concept of cloud computing using Windows Azure and the maturity of Windows Server technology, workflow services can be hosted with first-class service monitoring with less overhead from a ...

    magwmi56.zip

    WINDOWS 系统消息获取, wmi ,及硬盘相关信息contains WMI, SMART and SCSI PassThrough functions, of particular use for getting hard disk ... Running across a network also needs the RPC service running.

    Windows Azure Succinctly(Syncfusion,2014)

    These categories (described in more detail later) include Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). For the purposes of discussion, we’ll ...

    win 3.11 for workgroup tcpip支持

    A DHCP server is scheduled to ship as part of Windows NT(TM) Server version 3.5. If you enable automatic DHCP configuration without a DHCP server available on your network, the following message ...

    S7A驱动720版本

    - The driver can now be registered as a service with the local system account as the log-on account. For more information see the document "S7A_as_Service.PDF" on the installation CD . - The ...

    NIST SP800-69.pdf

    Although some of the guidance presented in this document may be applicable to multiple versions of Windows XP, the guidance is ...for Windows XP Home Edition computers running Service Pack 2.1...

    微软内部资料-SQL性能优化2

    A reference to an invalid page (a page that is not in your working set) is referred to as a page fault. Assuming the page reference does not result in an access violation, a page fault can be either ...

    Python Cookbook英文版

    7.11 Getting the Windows Service Name from Its Long Name 7.12 Manipulating Windows Services 7.13 Impersonating Principals on Windows 7.14 Changing a Windows NT Password Using ADSI 7.15 ...

    Professional C# 3rd Edition

    Creating a Windows Form Application 574 Control Class 579 Size and Location 580 Appearance 580 User Interaction 580 Windows Functionality 582 Miscellaneous Functionality 582 Class Hierarchy 582 ...

    NewSID(光学习一下代码就可以了,没看清楚介绍别运行)

    This functionality makes it possible to move a Backup Domain Controller (BDC) to a new Domain, since a BDC‘s relationship to a Domain is identified by it having the same computer SID as the other ...

Global site tag (gtag.js) - Google Analytics