중지후 수동으로 전환

sc stop tvnserver
sc config tvnserver start= demand


시작후 자동으로 전환

sc start tvnserver

sc config tvnserver start= auto


사용안함으로 전환

sc config tvnserver start= disabled


**

SC Create example

The following SC Create example creates a Windows service for the Endeca Server (note that the command is on one line, but is indented here for ease of reading):
sc create EndecaServer displayname= "Oracle Endeca Server" 
  type= own error= severe obj= "CORPDEV\EndecaUser" password= banx912
  binpath= "C:\Oracle\Endeca\Server\7.4.0\endeca-server\service-wrapper-7.4.exe"
The sample command does the following:
  • Creates a Windows service named EndecaServer.
  • Uses Oracle Endeca Server as the display name for the service.
  • Sets the service type as own (which means the service runs in its own process).
  • Sets severe as the severity of error if the service does not start during the boot process.
  • Specifies that the service run under the CORPDEV\EndecaUser user account, which has banx912 as its password.
  • Sets the binary path of the service-wrapper-7.4.exe executable.

For ease of use, you can place the command in a batch script.




+ Recent posts