LoginSignup
0
0

More than 1 year has passed since last update.

古いdebian環境でのsystemctl not found / service not found

Posted at

個人的覚書。

Debian5環境でserviceコマンド、systemctlコマンドが使えない場合の対策です。
Debian では起動スクリプトは /etc/init.d/ディレクトリに置かれているので、

su
/etc/init.d/apache2 restart

要は
service サービス名 コマンド名 を
/etc/init.d/ サービス名 コマンド名にしただけ。

ls -a /etc/init.d/ 

上記でinit.d配下にあるなら動きますよ、という話でした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0