2016-02-16

systemctl と chkconfig と service の使い方まとめ

サービス一覧
# chkconfig --list

# systemctl list-unit-files -t service


自動起動設定
# chkconfig hoge on

# systemctl enable hoge.service


自動起動解除
# chkconfig hoge off

# systemctl disable hoge.service


サービス起動
# service hoge start

# systemctl start hoge.service


サービス状態確認
# service hoge status

# systemctl status hoge.service


サービス停止
# service hoge stop

# systemctl stop hoge.service

0 件のコメント:

コメントを投稿

sftp専用ユーザー

sftp専用ユーザーはsshでもログインできる必要があるので、ftp専用ユーザーのように、-s /sbin/nologin としない。 # useradd sftpuser # passwd sftpuser New password: Retype new passwo...