Komut Satırı Aracı servbayctl
servbayctl
, geliştiricilere ServBay hizmetlerini komut satırından yönetme olanağı sağlayan bir komut satırı aracıdır. servbayctl
ile servisleri başlatabilir, durdurabilir, yeniden yükleyebilir, yeniden başlatabilir, sonlandırabilir, durumunu görüntüleyebilir ve tüm servisleri durdurabilirsiniz. Aşağıda servbayctl
kullanarak yapabileceğiniz işlemler detaylı bir şekilde açıklanmıştır.
Desteklenen Komutlar ve Parametreler
servbayctl
aşağıdaki komutları ve parametreleri destekler:
Kullanım: servbayctl {start|stop|reload|restart|kill|status|stop-all} {php|mariadb|pgsql|redis|memcached|caddy|dnsmasq} [-all|version]
Temel Komutlar
Aşağıda servbayctl
'nin temel komutları ve örnekleri yer almaktadır:
Servis Başlatma
Belirtilen servisi başlatır.
servbayctl start {servis_adı} [-all|version]
Örnek: PHP 7.4 servisini başlat
servbayctl start php 7.4
Servis Durdurma
Belirtilen servisi durdurur.
servbayctl stop {servis_adı} [-all|version]
Örnek: PHP 7.4 servisini durdur
servbayctl stop php 7.4
Servis Yeniden Yükleme
Belirtilen servisin yapılandırmasını yeniden yükler.
servbayctl reload {servis_adı} [-all|version]
Örnek: PHP 7.4 yapılandırmasını yeniden yükle
servbayctl reload php 7.4
Servis Yeniden Başlatma
Belirtilen servisi yeniden başlatır.
servbayctl restart {servis_adı} [-all|version]
Örnek: PHP 7.4 servisini yeniden başlat
servbayctl restart php 7.4
Servis Sonlandırma
Belirtilen servis işlemini zorla sonlandırır.
servbayctl kill {servis_adı} [-all|version]
Örnek: PHP 7.4 servis işlemini sonlandır
servbayctl kill php 7.4
Servis Durumunu Görüntüleme
Belirtilen servisin çalışma durumunu görüntüler.
servbayctl status {servis_adı} [-all|version]
Örnek: PHP 7.4 servis durumunu görüntüle
servbayctl status php 7.4
Tüm Servisleri Durdurma
Çalışan tüm servisleri durdurur.
servbayctl stop-all
Desteklenen Servisler
servbayctl
aşağıdaki servisleri destekler:
- php
- mariadb
- pgsql
- redis
- memcached
- caddy
- dnsmasq
Örnek İşlemler
Aşağıda bazı yaygın işlem örnekleri yer almaktadır:
Tüm PHP Sürümlerini Başlatma
servbayctl start php -all
Tüm MariaDB Sürümlerini Durdurma
servbayctl stop mariadb -all
Redis Servisini Yeniden Başlatma
servbayctl restart redis -all
Caddy Servis Durumunu Görüntüleme
servbayctl status caddy -all
Tüm Çalışan Servisleri Durdurma
servbayctl stop-all
Dikkat Edilmesi Gerekenler
-all
parametresini kullanarak belirli bir servisin tüm versiyonlarına işlem uygulayabilirsiniz.version
parametresi, spesifik bir servis versiyonunu belirtmek için kullanılır.kill
vestop-all
gibi bazı işlemler için dikkatli olun; aksi takdirde hizmette beklenmedik kesintiler oluşabilir.