Windows Server 2003: Hizmet Oluştur
Programlar Windows Server 2003 altında hizmetler olarak oluşturulabilir, böylece sistem her başlatıldığında kalıcı olarak yürütülür. Bu, bir kullanıcı oturum açmadan bile çalışır. Bu pratik ipucunda bir uygulamanın nasıl kurulacağını okuyabilirsiniz.
Windows Server 2003: Kaynak Seti Araçlarını kullanarak hizmet oluşturma
CHIP: Resource Kit Tools Download'dan indirebileceğiniz Windows Server 2003 Kaynak Kiti Araçları ile nispeten kolaydır.
- Kit araçlarını ve elbette bir servis olarak ayarlanacak programı kurun. Programın * .exe dosyasının tam yolunu not edin.
- Kit Tools'un kurulum klasöründeki komut satırını (CMD) başlatın. Şu komutu buraya girin: instsrv.exe [hizmet adı] [uygulama yolu] \ srvany.exe, örneğin instsrv.exe MeinDienst C: \ Program \ MeinDienst.exe \ srvany.exe ve "Enter" ile bitirin,
- "Windows" + "R" ile çalışma penceresini açın, regedit.exe yazın ve Tamam'a tıklayın. Şimdi kayıt defterinde anahtarı arayın: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ [hizmetinizin adı]. Şimdi "Parametreler" adında yeni bir alt anahtar oluşturun. Bu değeri verin: Ad: Uygulama Veri türü: String (REG_SZ) Değer: [* .exe yolu] Şimdi kayıt defteri düzenleyicisini kapatın.
- Hizmet şimdi oluşturulur ve otomatik olarak başlar. Değişiklik yapmak için önce Denetim Masası'nı, ardından "Yönetimsel Araçlar" ı ve son olarak "Hizmetler" i açın. Orada, oluşturduğunuz hizmeti de bulacaksınız, böylece herhangi bir ayar yapabilirsiniz.
Güçlü araç: Çok sayıda hizmet ayarı için SC.exe
Windows Server 2003 Kaynak Seti Araçları ile de uygulayabileceğiniz bu programla, hizmetleri komut satırı üzerinden tamamen oluşturabilir, düzenleyebilir ve silebilirsiniz. Bu şekilde çalışır.
- Çalıştır ("Windows" + "R") cmd.exe dosyasını başlatarak komut satırını tekrar açın.
- Hizmeti oluşturun: sc create "MeinDienst" start = auto binpath = "C: \ Program \ MeinDienst.exe"
- Bir hizmeti otomatik olarak başlamayacak şekilde yapılandırın: sc config "Hizmetim" start = devre dışı
- Hizmetin açıklamasını değiştirin: sc açıklama "MeinDienst" "Bu program bir hizmet olarak başlatılır ve her zaman etkindir."
Genel olarak, özellikle yolu belirlerken zorluklara yol açtığı için boşluklara dikkat edin. Mümkünse, isimlerden tamamen kaçının. Komut satırıyla çalışmak istemiyorsanız, Windows konsolu alternatiflerimizden birine göz atın.