0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Centos6 Centos7

Posted at

CentOS6

シャットダウン 
shutdown -h now	

再起動	
reboot shutdown -r now	

シングルユーザーモード	
init S
	
サービス一覧	
chkconfig --list	

サービス自動起動ON(sshd)	
chkconfig sshd on
	
サービス自動起動OFF(sshd)
chkconfig sshd off	

サービス起動(sshd)
service sshd start

サービス停止(sshd)
service sshd stop	

サービス強制終了	
kill -9 <sshdのPID>	

CentOS7

シャットダウン 
systemctl poweroff

再起動
reboot systemctl reboot

シングルユーザーモード	
systemctl rescue

サービス再起動(sshd)
systemctl restart sshd

サービス状態確認	
systemctl status sshd

サービス設定リロード	
systemctl reload sshd

サービス一覧
systemctl --type service

サービス自動起動ON(sshd)
systemctl enable sshd

サービス自動起動OFF(sshd)
systemctl disable sshd

サービス起動	
systemctl start sshd

サービス強制終了
systemctl kill --signal=9 sshd
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?